From f7507110ef8efa0184a30acb872a7e2ac9c23782 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Mon, 24 Apr 2017 14:13:52 +0300 Subject: [PATCH] mdbx: alter mdbx_txn_id() API. --- src/mdbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdbx.c b/src/mdbx.c index cfca3b5a..0a5d0d24 100644 --- a/src/mdbx.c +++ b/src/mdbx.c @@ -2409,7 +2409,7 @@ MDB_env *mdbx_txn_env(MDB_txn *txn) { size_t mdbx_txn_id(MDB_txn *txn) { if (unlikely(!txn || txn->mt_signature != MDBX_MT_SIGNATURE)) - return 0; + return ~(txnid_t)0; return txn->mt_txnid; }