From c07cfd30e1c1e050c9ca639468877b4fa1ce5792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Sun, 2 Nov 2025 22:11:49 +0300 Subject: [PATCH] mdbx: refine description of `MDBX_BAD_RSLOT`. --- mdbx.h | 3 +-- src/api-misc.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/mdbx.h b/mdbx.h index 55f1aab7..cdf6f046 100644 --- a/mdbx.h +++ b/mdbx.h @@ -1909,8 +1909,7 @@ typedef enum MDBX_error { * - The table was dropped and recreated with different flags. */ MDBX_INCOMPATIBLE = -30784, - /** Invalid reuse of reader locktable slot, - * e.g. read-transaction already run for current thread */ + /** Reader locktable slot was unexpectly reused or cleared by an enemy thread */ MDBX_BAD_RSLOT = -30783, /** Transaction is not valid for requested operation, diff --git a/src/api-misc.c b/src/api-misc.c index 27e82a90..92e3fc2f 100644 --- a/src/api-misc.c +++ b/src/api-misc.c @@ -146,8 +146,7 @@ __cold const char *mdbx_liberr2str(int errnum) { " or Operation system not supported such operations", "MDBX_INCOMPATIBLE: Environment or database is not compatible" " with the requested operation or the specified flags", - "MDBX_BAD_RSLOT: Invalid reuse of reader locktable slot," - " e.g. read-transaction already run for current thread", + "MDBX_BAD_RSLOT: Reader locktable slot was unexpectly reused or cleared by an enemy thread", "MDBX_BAD_TXN: Transaction is not valid for requested operation," " e.g. had errored and be must aborted, has a child, or is invalid", "MDBX_BAD_VALSIZE: Invalid size or alignment of key or data"