mdbx: fix mdbx_strerror() for MDBX_BUSY error.

Change-Id: Iea02f1daa3f52a9b737366e9af3c7def748ab523
This commit is contained in:
Leonid Yuriev 2020-09-16 12:18:29 +03:00
parent efe400264f
commit 6a99303ec1

View File

@ -3236,7 +3236,7 @@ static const char *__mdbx_strerr(int errnum) {
" or environment is already used while opening with MDBX_EXCLUSIVE flag",
};
if (errnum >= MDBX_KEYEXIST && errnum <= MDBX_LAST_LMDB_ERRCODE) {
if (errnum >= MDBX_KEYEXIST && errnum <= MDBX_BUSY) {
int i = errnum - MDBX_KEYEXIST;
return tbl[i];
}