mdbx: fix mdbx_txn_abort().

This resolves https://github.com/leo-yuriev/libfpta/issues/20
This commit is contained in:
Leonid Yuriev 2018-10-21 18:28:19 +03:00
parent 3bae0723b7
commit 124c5a6751

View File

@ -3705,7 +3705,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))