From 5c9baa06b94acb54d3e2e6d46579c0d894578418 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Tue, 30 Jan 2018 19:52:39 +0300 Subject: [PATCH] mdbx: fix mdbx_txn_end() assert for mt_owner. --- src/mdbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdbx.c b/src/mdbx.c index abe706c5..60569ca8 100644 --- a/src/mdbx.c +++ b/src/mdbx.c @@ -2981,7 +2981,7 @@ static int mdbx_txn_end(MDBX_txn *txn, unsigned mode) { mdbx_pnl_free(pghead); } - mdbx_assert(env, txn->mt_owner == 0); + mdbx_assert(env, txn == env->me_txn0 || txn->mt_owner == 0); if ((mode & MDBX_END_FREE) != 0 && txn != env->me_txn0) { txn->mt_signature = 0; free(txn);