lmdb_master_sys

Function mdb_txn_id

Source
pub unsafe extern "C" fn mdb_txn_id(txn: *mut MDB_txn) -> mdb_size_t
Expand description

Return the transaction’s ID.

This returns the identifier associated with this transaction. For a read-only transaction, this corresponds to the snapshot being read; concurrent readers will frequently have the same transaction ID.

§Arguments

  • txn (direction in) - A transaction handle returned by #mdb_txn_begin()

§Returns

A transaction ID, valid if input is an active transaction.