# DB_TXN->id |

`

###

    #include <db.h>

    u_int32_t
    DB_TXN->id(DB_TXN *tid);

# Description

The DB_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 DB_TXN->id as the locker parameter to the DB_ENV->lock_get or DB_ENV->lock_vec calls.

# See Also

DB_ENV->set_tx_max, DB_ENV->set_tx_recover, DB_ENV->set_tx_timestamp, DB_TXN->abort, DB_ENV->txn_begin, DB_ENV->txn_checkpoint, DB_TXN->commit, DB_TXN->discard, DB_TXN->id, DB_TXN->prepare, DB_ENV->txn_recover, DB_TXN->set_timeout and DB_ENV->txn_stat.`

Copyright Sleepycat Software