mdbx: allow mdbx_dbi_flags_ex() for errored transactions.

This commit is contained in:
Leonid Yuriev 2022-01-20 21:33:09 +03:00
parent f4cc7b3609
commit 3e28cc2a25

View File

@ -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;