mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 18:24:12 +08:00
mdbx: fix mdbx_txn_end() assert for mt_owner.
This commit is contained in:
parent
1143390e58
commit
5c9baa06b9
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user