void commit_txn(DbEnv *env, u_int32_t flags=0)
Commit current transaction opened in the environment "env".
This function is called by user to commit an external explicit transaction.
void commit_txn(DbEnv *env, DbTxn *txn, u_int32_t flags=0)
Commit a specified transaction and all its child transactions.
The transaction to commit, can be a parent transaction of a nested transaction group, all un-aborted child transactions of it will be committed.
dbstl transaction API.
You should call these API rather than DB C/C++ API to use Berkeley DB transaction features.