June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db.h> int txn_begin(DB_ENV *env, DB_TXN *parent, DB_TXN **tid, u_int32_t flags);
The txn_begin method creates a new transaction in the environment and copies a pointer to a DB_TXN 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); that ...