Library Version 11.2.5.3

DB_TXN->id()
Prev | Chapter 12. The DB_TXN Handle | Next

## DB_TXN->id()

    #include <db.h>

    u_int32_t
    DB_TXN->id(DB_TXN *tid);

The `DB_TXN->id()` method returns the unique transaction id associated with the specified transaction. Locking calls made on behalf of this transaction should use the value returned from `DB_TXN->id()` as the locker parameter to the DB_ENV->lock_get() or DB_ENV->lock_vec() calls.

### Class

DB_ENV, DB_TXN

### See Also

Transaction Subsystem and Related Methods

Prev | Up | Next
DB_TXN->get_priority() | Home | DB_TXN->prepare()