mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 01:04:13 +08:00
mdbx: alter mdbx_txn_id() API.
This commit is contained in:
parent
297190e308
commit
f7507110ef
@ -2409,7 +2409,7 @@ MDB_env *mdbx_txn_env(MDB_txn *txn) {
|
|||||||
|
|
||||||
size_t mdbx_txn_id(MDB_txn *txn) {
|
size_t mdbx_txn_id(MDB_txn *txn) {
|
||||||
if (unlikely(!txn || txn->mt_signature != MDBX_MT_SIGNATURE))
|
if (unlikely(!txn || txn->mt_signature != MDBX_MT_SIGNATURE))
|
||||||
return 0;
|
return ~(txnid_t)0;
|
||||||
return txn->mt_txnid;
|
return txn->mt_txnid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user