June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db_cxx.h> int DbEnv::txn_begin(DbTxn *parent, DbTxn **tid, u_int32_t flags);
The DbEnv::txn_begin method creates a new transaction in the environment and copies a pointer to a DbTxn that uniquely identifies it into the memory referenced by tid.
If the parent argument is non-NULL, the new transaction will be a nested transaction, with the transaction indicated by parent as its parent. Transactions may be nested to any level.
The flags parameter must be set to 0 or one of the following values:
DB_TXN_NOSYNC Do not synchronously flush the log when this transaction commits or prepares. This means the transaction will exhibit the ACI (atomicity, consistency, and isolation) properties, but not D (durability); ...