DbEnv::txn_checkpoint

API Ref

#include <db_cxx.h>

int DbEnv::txn_checkpoint(u_int32_t kbyte, u_int32_t min, u_int32_t flags) const;


Description: DbEnv::txn_checkpoint

The DbEnv::txn_checkpoint method flushes the underlying memory pool, writes a checkpoint record to the log, and then flushes the log.

The DbEnv::txn_checkpoint method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

Parameters

flags
The flags parameter must be set to 0 or the following value:

DB_FORCE
Force a checkpoint record, even if there has been no activity since the last checkpoint.

kbyte
If the kbyte parameter is non-zero, a checkpoint will be done if more than kbyte kilobytes of log data have been writtent="Berkeley DB: An embedded database programmatic toolkit.">

DbEnv::set_tx_timestamp

API Ref

#include <db_cxx.h>

int DbEnv::set_tx_timestamp(time_t *timestamp);

int DbEnv::get_tx_timestamp(time_t *timestampp);


Description: DbEnv::set_tx_timestamp

Recover to the time specified by timestamp rather than to the most current possible date.

Once a database environment has been upgraded to a new version of Berkeley DB involving a log format change (see Upgrading Berkeley DB installations), it is no longer possib