DbTxn* set_current_txn_handle(DbEnv *env, DbTxn *newtxn)
Set environment env's current transaction handle to be newtxn.
The original transaction handle returned without aborting or commiting. This function is used for users to use one transaction among multiple threads.
dbstl transaction API.
You should call these API rather than DB C/C++ API to use Berkeley DB transaction features.