head 1.2; access; symbols RPM_4_2_1:1.1.1.5 RPM_4_2:1.1.1.5 RPM_4_1_1:1.1.1.5 RPM_4_1:1.1.1.4 RPM_4_0_5:1.1.1.3 RPM_4_0_4:1.1.1.2 RPM_4_0_3:1.1.1.1 RPM:1.1.1; locks; strict; comment @# @; 1.2 date 2008.01.02.09.55.20; author rse; state dead; branches; next 1.1; commitid z4cpSiAhOCXk5PLs; 1.1 date 2001.07.23.20.45.38; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.07.23.20.45.38; author rse; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2002.01.08.00.30.12; author rse; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2003.01.18.13.49.02; author rse; state Exp; branches; next 1.1.1.4; 1.1.1.4 date 2001.10.15.03.47.34; author rse; state Exp; branches; next 1.1.1.5; 1.1.1.5 date 2003.01.18.14.05.00; author rse; state Exp; branches; next ; desc @@ 1.2 log @remove the ancient RPM 4.2.1 source tree copy @ text @
|
![]() ![]() ![]() |
The Logging subsystem is the logging facility used by Berkeley DB. It is largely Berkeley DB-specific, although it is potentially useful outside of the Berkeley DB package for applications wanting write-ahead logging support. Applications wanting to use the log for purposes other than logging file modifications based on a set of open file descriptors will almost certainly need to make source code modifications to the Berkeley DB code base.
A log can be shared by any number of threads of control. The DB_ENV->open interface is used to open a log. When the log is no longer in use, it should be closed using the DB_ENV->close interface.
Individual log entries are identified by log sequence numbers. Log sequence numbers are stored in an opaque object, a DB_LSN.
The log_put interface is used to append new log records to the log. Optionally, the DB_CHECKPOINT flag can be used to output a checkpoint log record (indicating that the log is consistent to that point, and recoverable after a system or application failure), as well as open-file information. The log_get interface is used to retrieve log records from the log.
There are additional interfaces for integrating the log subsystem with a transaction processing system:
![]() ![]() ![]() |
Copyright Sleepycat Software @ 1.1 log @Initial revision @ text @d1 1 a1 1 @ 1.1.1.1 log @Import: RPM 4.0.3 @ text @@ 1.1.1.2 log @Import: RPM 4.0.4 @ text @d1 1 a1 1 d31 3 a33 3
The DB_ENV->log_put function is used to append new log records to the log. Optionally, the DB_CHECKPOINT flag can be used to output a checkpoint log record (indicating that the log is consistent to that d35 2 a36 4 as open-file information.
The DB_ENV->log_cursor function is used to allocate a log cursor. Log cursors have two methods: DB_LOGC->get function to retrieve log records from the log, and DB_LOGC->close function to destroy the cursor. d40 1 a40 1
The DB_ENV->log_cursor method is used to allocate a log cursor. Log cursors have two methods: DB_LOGC->get method to retrieve log records from the log, and DB_LOGC->close method to destroy the cursor. d42 3 a55 17
Logging Subsystem and Related Methods | Description |
---|---|
DB_ENV->log_archive | List log and database files |
DB_ENV->log_cursor | Create a log cursor handle |
DB_ENV->log_file | Map Log Sequence Numbers to log files |
DB_ENV->log_flush | Flush log records |
DB_ENV->log_put | Write a log record |
DB_ENV->set_lg_bsize | Set log buffer size |
DB_ENV->set_lg_dir | Set the environment logging directory |
DB_ENV->set_lg_max | Set log file size |
DB_ENV->set_lg_regionmax | Set logging region size |
log_compare | Compare two Log Sequence Numbers |
DB_ENV->log_stat | Return log subsystem statistics |
DB_LOGC->close | Close a log cursor |
DB_LOGC->get | Retrieve a log record |
The DB_ENV->log_put function is used to append new log records to the log. Optionally, the DB_CHECKPOINT flag can be used to output a checkpoint log record (indicating that the log is consistent to that point, and recoverable after a system or application failure), as well as open-file information.
The DB_ENV->log_cursor function is used to allocate a log cursor. Log cursors have two methods: DB_LOGC->get function to retrieve log records from the log, and DB_LOGC->close function to destroy the cursor. a37 3
The DB_ENV->log_cursor method is used to allocate a log cursor. Log cursors have two methods: DB_LOGC->get method to retrieve log records from the log, and DB_LOGC->close method to destroy the cursor. d42 3 a55 17
Logging Subsystem and Related Methods | Description |
---|---|
DB_ENV->log_archive | List log and database files |
DB_ENV->log_cursor | Create a log cursor handle |
DB_ENV->log_file | Map Log Sequence Numbers to log files |
DB_ENV->log_flush | Flush log records |
DB_ENV->log_put | Write a log record |
DB_ENV->set_lg_bsize | Set log buffer size |
DB_ENV->set_lg_dir | Set the environment logging directory |
DB_ENV->set_lg_max | Set log file size |
DB_ENV->set_lg_regionmax | Set logging region size |
log_compare | Compare two Log Sequence Numbers |
DB_ENV->log_stat | Return log subsystem statistics |
DB_LOGC->close | Close a log cursor |
DB_LOGC->get | Retrieve a log record |