June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db_cxx.h> int DbEnv::log_put(DbLsn *lsn, const Dbt *data, u_int32_t flags);
The DbEnv::log_put method appends records to the log. The DbLsn of the put record is returned in the lsn argument. The flags argument may be set to one of the following values:
DB_CHECKPOINT The log should write a checkpoint record, recording any information necessary to make the log structures recoverable after a crash.
DB_CURLSN The DbLsn of the next record to be put is returned in the lsn argument.
DB_FLUSH The log is forced to disk after this record is written, guaranteeing that all records with DbLsn values less than or equal to the one being put are on disk before this function returns (this function is most often used for ...