Library Version 11.2.5.2

Chapter 7. The DB_LSN Handle
Prev |  | Next

## Chapter 7. The DB_LSN Handle

    #include <db.h>

    typedef struct __typedef struct __db_lsn DB_LSN; ;

The `DB_LSN` object is a log sequence number which specifies a unique location in a log file. A `DB_LSN` consists of two unsigned 32-bit integers -- one specifies the log file number, and the other specifies an offset in the log file.

## Logging Subsystem and Related Methods

Logging Subsystem and Related Methods | Description
--- | ---
DB_ENV->log_archive() | List log and database files
DB_ENV->log_file() | Map Log Sequence Numbers to log files
DB_ENV->log_flush() | Flush log records
DB_ENV->log_printf() | Append informational message to the log
DB_ENV->log_put() | Write a log record
DB_ENV->log_stat() | Return log subsystem statistics
DB_ENV->log_stat_print() | Print log subsystem statistics
log_compare | Compare two Log Sequence Numbers
Logging Subsystem Cursors
DB_ENV->log_cursor() | Create a log cursor handle
The DB_LOGC Handle | A log cursor handle
DB_LOGC->close() | Close a log cursor
DB_LOGC->get() | Retrieve a log record
Logging Subsystem Configuration
DB_ENV->log_set_config(), DB_ENV->log_get_config() | Configure the logging subsystem
DB_ENV->set_lg_bsize(), DB_ENV->get_lg_bsize() | Set/get log buffer size
DB_ENV->set_lg_dir(), DB_ENV->get_lg_dir() | Set/get the environment logging directory
DB_ENV->set_lg_filemode(), DB_ENV->get_lg_filemode() | Set/get log file mode
DB_ENV->set_lg_max(), DB_ENV->get_lg_max() | Set/get log file size
DB_ENV->set_lg_regionmax(), DB_ENV->get_lg_regionmax() | Set/get logging region size

Prev |  | Next
DB_ENV->lock_vec() | Home | DB_ENV->get_lg_bsize()