txn_id |
#include <db.h>u_int32_t txn_id(DB_TXN *tid);
The txn_id function returns the unique transaction id associated with the specified transaction. Locking calls made on behalf of this transaction should use the value returned from txn_id as the locker parameter to the lock_get or lock_vec calls.