log MDB_READERS_FULL retries
This commit is contained in:
parent
c89ab1a990
commit
b9f8a3d587
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user