mdbx: fix MDBX_BUSY comment/description (typo).

This commit is contained in:
Leo Yuriev 2017-12-19 16:37:20 +03:00
parent 96a0647253
commit b1c7fa30c0
2 changed files with 2 additions and 2 deletions

2
mdbx.h
View File

@ -424,7 +424,7 @@ typedef enum MDBX_cursor_op {
#define MDBX_BAD_DBI (-30780)
/* Unexpected problem - txn should abort */
#define MDBX_PROBLEM (-30779)
/* Unexpected problem - txn should abort */
/* Another write transaction is running */
#define MDBX_BUSY (-30778)
/* The last defined error code */
#define MDBX_LAST_ERRCODE MDBX_BUSY

View File

@ -708,7 +708,7 @@ static const char *__mdbx_strerr(int errnum) {
"DUPFIXED size",
"MDBX_BAD_DBI: The specified DBI handle was closed/changed unexpectedly",
"MDBX_PROBLEM: Unexpected problem - txn should abort",
"MDBX_BUSY: Another write transation is started",
"MDBX_BUSY: Another write transaction is started",
};
if (errnum >= MDBX_KEYEXIST && errnum <= MDBX_LAST_ERRCODE) {