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