mirror of
https://github.com/isar/libmdbx.git
synced 2025-04-28 07:42:26 +08:00
mdbx: fix mdbx_txn_abort().
This resolves https://github.com/leo-yuriev/libfpta/issues/20
This commit is contained in:
parent
3bae0723b7
commit
124c5a6751
@ -3705,7 +3705,7 @@ int mdbx_txn_abort(MDBX_txn *txn) {
|
|||||||
if (unlikely(txn->mt_signature != MDBX_MT_SIGNATURE))
|
if (unlikely(txn->mt_signature != MDBX_MT_SIGNATURE))
|
||||||
return MDBX_EBADSIGN;
|
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;
|
return MDBX_THREAD_MISMATCH;
|
||||||
|
|
||||||
if (F_ISSET(txn->mt_flags, MDBX_TXN_RDONLY))
|
if (F_ISSET(txn->mt_flags, MDBX_TXN_RDONLY))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user