mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-10 03:14:13 +08:00
mdbx: backport - fix mdbx_txn_abort().
This resolves https://github.com/leo-yuriev/libfpta/issues/20 Change-Id: I43c0c960d5c871d837b307cd370ee7327db01ff6
This commit is contained in:
parent
08130df595
commit
affd28654c
@ -3435,7 +3435,7 @@ int mdbx_txn_abort(MDBX_txn *txn) {
|
||||
if (unlikely(txn->mt_signature != MDBX_MT_SIGNATURE))
|
||||
return MDBX_EBADSIGN;
|
||||
|
||||
if (unlikely(txn->mt_owner && txn->mt_owner != mdbx_thread_self()))
|
||||
if (unlikely(txn->mt_owner != mdbx_thread_self()))
|
||||
return MDBX_THREAD_MISMATCH;
|
||||
|
||||
if (F_ISSET(txn->mt_flags, MDBX_TXN_RDONLY))
|
||||
|
Loading…
x
Reference in New Issue
Block a user