STLdb

PrevUpHomeNext

Struct log_header

stldb::log_header

Synopsis

// In header: </Users/bobw/workspaces/STLdb/stldb_lib/stldb/logging.h>


struct log_header {
  // construct/copy/destruct
  log_header();

  // public member functions
  bool padding() const;
  bool empty() const;
  void finalize();

  // public data members
  uint32_t op_count;
  uint32_t segment_size;
  transaction_id_t lsn;
  uint32_t segment_checksum;
  uint32_t header_checksum;
};

Description

Each transaction log record is proceeded by a fixed size header which indicates the length of the ensuing log records, and provides a checksum value.

log_header public construct/copy/destruct

  1. log_header();

log_header public member functions

  1. bool padding() const;
  2. bool empty() const;
  3. void finalize();

PrevUpHomeNext