June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db.h> int log_put(DB_ENV *env, DB_LSN *lsn, const DBT *data, u_int32_t flags);
The log_put function appends records to the log. The DB_LSN 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 DB_LSN 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 DB_LSN values less than or equal to the one being put are on disk before this function returns (this function is most often used for a transaction ...