mdbx: fix mdbx_txn_end() assert for mt_owner.

This commit is contained in:
Leo Yuriev 2018-01-30 19:52:39 +03:00
parent 1143390e58
commit 5c9baa06b9

View File

@ -2981,7 +2981,7 @@ static int mdbx_txn_end(MDBX_txn *txn, unsigned mode) {
mdbx_pnl_free(pghead); 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) { if ((mode & MDBX_END_FREE) != 0 && txn != env->me_txn0) {
txn->mt_signature = 0; txn->mt_signature = 0;
free(txn); free(txn);