Berkeley DB Reference Guide:
Upgrading Berkeley DB Applications

PrevRefNext

Release 3.1: DBENV->set_tx_recover

The redo parameter of the function passed to DBENV->set_tx_recover used to be an integer set to any one of a number of #defined values. In the 3.1 release of Berkeley DB, the redo parameter has been replaced by the op parameter which is an enumerated type of type db_recops.

If your application calls DBENV->set_tx_recover, then find the function referenced in the call. Replace the flag values in that function as follows:

Previous flagBerkeley DB 3.1 version flag
TXN_BACKWARD_ROLLDB_TXN_BACKWARD_ROLL
TXN_FORWARD_ROLLDB_TXN_FORWARD_ROLL
TXN_OPENFILESDB_TXN_OPENFILES
TXN_REDODB_TXN_FORWARD_ROLL
TXN_UNDODB_TXN_ABORT

PrevRefNext

Copyright Sleepycat Software