From 124c5a6751c67c41278163a812af75f2bbb172ee Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Sun, 21 Oct 2018 18:28:19 +0300 Subject: [PATCH] mdbx: fix mdbx_txn_abort(). This resolves https://github.com/leo-yuriev/libfpta/issues/20 --- src/mdbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdbx.c b/src/mdbx.c index ca3774d5..88ac27cd 100644 --- a/src/mdbx.c +++ b/src/mdbx.c @@ -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))