Skip to Content
Berkeley DB
book

Berkeley DB

by Sleepycat™ Software, Inc.
June 2001
Intermediate to advanced content levelIntermediate to advanced
688 pages
19h 18m
English
Sams
Content preview from Berkeley DB

log_put

						#include <db.h>
						int
						log_put(DB_ENV *env,
						DB_LSN *lsn, const DBT *data, u_int32_t flags);
					

Description

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Berkeley DB Book

The Berkeley DB Book

Himanshu Yadava
Linux Recipes for Oracle DBAs

Linux Recipes for Oracle DBAs

Darl Kuhn, Charles Kim, Bernard Lopuz
Fedora Linux

Fedora Linux

Chris Tyler

Publisher Resources

ISBN: 0735710643Purchase book