From 8ee3c6ddb017db13f6b54b2471043f84e77c9389 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Thu, 7 May 2020 10:19:56 +0300 Subject: [PATCH] mdbx: minor fix return MDBX_EBADSIGN. Change-Id: Ia0da8b4c2a5f0776688c92ad50433eed5e83b73c --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index e8856f20..1da404d1 100644 --- a/src/core.c +++ b/src/core.c @@ -18193,7 +18193,7 @@ int mdbx_set_attr(MDBX_txn *txn, MDBX_dbi dbi, MDBX_val *key, MDBX_val *data, return MDBX_EINVAL; if (unlikely(txn->mt_signature != MDBX_MT_SIGNATURE)) - return MDBX_VERSION_MISMATCH; + return MDBX_EBADSIGN; if (unlikely(!TXN_DBI_EXIST(txn, dbi, DB_USRVALID))) return MDBX_EINVAL;