mdbx: корректировка описания MDBX_MVCC_RETARDED и соответствующего сообщения об ошибке (backport).

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2025-03-20 01:40:11 +03:00
parent 5dfe3433a8
commit 58729a2fbd
2 changed files with 2 additions and 5 deletions

3
mdbx.h
View File

@ -1972,8 +1972,7 @@ typedef enum MDBX_error {
* recycling old MVCC snapshots. */
MDBX_OUSTED = -30411,
/** MVCC snapshot used by read transaction is outdated and could not be
* copied since corresponding meta-pages was overwritten. */
/** MVCC snapshot used by parked transaction was bygone. */
MDBX_MVCC_RETARDED = -30410,
/* The last of MDBX-added error codes */

View File

@ -199,9 +199,7 @@ __cold const char *mdbx_liberr2str(int errnum) {
return "MDBX_OUSTED: The parked read transaction was outed for the sake"
" of recycling old MVCC snapshots";
case MDBX_MVCC_RETARDED:
return "MDBX_MVCC_RETARDED: MVCC snapshot used by read transaction"
" is outdated and could not be copied"
" since corresponding meta-pages was overwritten";
return "MDBX_MVCC_RETARDED: MVCC snapshot used by parked transaction was bygone";
default:
return nullptr;
}