log MDB_READERS_FULL retries

This commit is contained in:
vyzo 2021-02-01 14:31:31 +02:00
parent c89ab1a990
commit b9f8a3d587

View File

@ -12,6 +12,7 @@ retry:
err := f() err := f()
if lmdb.IsErrno(err, lmdb.ReadersFull) { if lmdb.IsErrno(err, lmdb.ReadersFull) {
dt := time.Microsecond + time.Duration(rand.Intn(int(time.Millisecond))) dt := time.Microsecond + time.Duration(rand.Intn(int(time.Millisecond)))
log.Debugf("MDB_READERS_FULL; retrying operation in %s", dt)
time.Sleep(dt) time.Sleep(dt)
goto retry goto retry
} }