From 3e28cc2a251b6e123c5f2259219e949ca00e5ae3 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Thu, 20 Jan 2022 21:33:09 +0300 Subject: [PATCH] mdbx: allow `mdbx_dbi_flags_ex()` for errored transactions. --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index f0db843b..cfbcca11 100644 --- a/src/core.c +++ b/src/core.c @@ -20168,7 +20168,7 @@ int mdbx_dbi_close(MDBX_env *env, MDBX_dbi dbi) { int mdbx_dbi_flags_ex(MDBX_txn *txn, MDBX_dbi dbi, unsigned *flags, unsigned *state) { - int rc = check_txn(txn, MDBX_TXN_BLOCKED); + int rc = check_txn(txn, MDBX_TXN_BLOCKED & ~MDBX_TXN_ERROR); if (unlikely(rc != MDBX_SUCCESS)) return rc;