Zero  0.1.0
Public Member Functions | Static Public Attributes | List of all members
fetch_page_log Struct Reference

#include <logdef_gen.h>

Inheritance diagram for fetch_page_log:
logrec_t

Public Member Functions

void construct (PageID pid, lsn_t page_lsn, StoreID store)
 
- Public Member Functions inherited from logrec_t
bool is_page_update () const
 
bool is_redo () const
 
bool is_skip () const
 
bool is_undo () const
 
bool is_cpsn () const
 
bool is_multi_page () const
 
bool is_root_page () const
 
bool is_logical () const
 
bool is_system () const
 
bool is_single_sys_xct () const
 
bool valid_header (const lsn_t &lsn_ck=lsn_t::null) const
 
smsize_t header_size () const
 
template<class PagePtr >
void redo (PagePtr)
 
void redo ()
 
template<class PagePtr >
void undo (PagePtr)
 
void init_header (kind_t)
 
template<class PagePtr >
void init_page_info (const PagePtr p)
 
void set_size (size_t l)
 
void init_xct_info ()
 
void set_xid_prev (tid_t tid, lsn_t last)
 
tid_t tid () const
 
StoreID stid () const
 
PageID pid () const
 
PageID pid2 () const
 
uint16_t tag () const
 
smsize_t length () const
 
const lsn_tundo_nxt () const
 
const lsn_tpage_prev_lsn () const
 
const lsn_tpage2_prev_lsn () const
 
void set_page_prev_lsn (const lsn_t &lsn)
 
const lsn_txid_prev () const
 
void set_xid_prev (const lsn_t &lsn)
 
void set_undo_nxt (const lsn_t &lsn)
 
void set_tid (tid_t tid)
 
void set_clr (const lsn_t &c)
 
void set_root_page ()
 
void set_pid (const PageID &p)
 
kind_t type () const
 
const char * type_str () const
 
const char * cat_str () const
 
const char * data () const
 
char * data ()
 
const char * data_ssx () const
 
char * data_ssx ()
 
multi_page_log_tdata_ssx_multi ()
 
const multi_page_log_tdata_ssx_multi () const
 
const lsn_tlsn_ck () const
 
const lsn_tlsn () const
 
const lsn_t get_lsn_ck () const
 
void set_lsn_ck (const lsn_t &lsn_ck)
 
void corrupt ()
 
void remove_info_for_pid (PageID pid)
 
bool has_page_img (PageID page_id)
 
void * operator new (size_t)
 
void operator delete (void *, size_t)
 
void * operator new (size_t, void *p)
 

Static Public Attributes

static constexpr kind_t TYPE = logrec_t::t_fetch_page
 

Additional Inherited Members

- Public Types inherited from logrec_t
enum  kind_t {
  t_comment = 0, t_compensate = 1, t_skip = 2, t_chkpt_begin = 3,
  t_warmup_done = 7, t_alloc_format = 8, t_evict_page = 9, t_add_backup = 10,
  t_xct_abort = 11, t_fetch_page = 12, t_xct_end = 13, t_xct_latency_dump = 15,
  t_alloc_page = 16, t_dealloc_page = 17, t_create_store = 18, t_append_extent = 19,
  t_loganalysis_begin = 20, t_loganalysis_end = 21, t_redo_done = 22, t_undo_done = 23,
  t_restore_begin = 24, t_restore_segment = 25, t_restore_end = 26, t_stnode_format = 27,
  t_page_img_format = 28, t_update_emlsn = 29, t_btree_norec_alloc = 30, t_btree_insert = 31,
  t_btree_insert_nonghost = 32, t_btree_update = 33, t_btree_overwrite = 34, t_btree_ghost_mark = 35,
  t_btree_ghost_reclaim = 36, t_btree_ghost_reserve = 37, t_btree_foster_adopt = 38, t_btree_split = 43,
  t_btree_compress_page = 44, t_tick_sec = 45, t_tick_msec = 46, t_benchmark_start = 47,
  t_page_write = 48, t_page_read = 49, t_max_logrec = 50
}
 
enum  { max_sz = 3 * sizeof(generic_page), hdr_non_ssx_sz = sizeof(baseLogHeader) + sizeof(xidChainLogHeader), hdr_single_sys_xct_sz = sizeof(baseLogHeader), max_data_sz = max_sz - hdr_non_ssx_sz - sizeof(lsn_t) }
 
- Static Public Member Functions inherited from logrec_t
static constexpr u_char get_logrec_cat (kind_t type)
 
static const char * get_type_str (kind_t)
 
- Protected Types inherited from logrec_t
enum  category_t {
  t_bad_cat = 0x00, t_system = 0x01, t_undo = 0x02, t_redo = 0x04,
  t_multi = 0x08, t_logical = 0x10, t_single_sys_xct = 0x80
}
 
enum  flag_t { t_cpsn = 0x01, t_root_page = 0x02 }
 
- Protected Member Functions inherited from logrec_t
u_char cat () const
 
lsn_t_lsn_ck ()
 
const lsn_t_lsn_ck () const
 
- Protected Attributes inherited from logrec_t
baseLogHeader header
 
xidChainLogHeader xidInfo
 
char _data [max_sz - sizeof(baseLogHeader) - sizeof(xidChainLogHeader)]
 

Member Function Documentation

§ construct()

void fetch_page_log::construct ( PageID  pid,
lsn_t  page_lsn,
StoreID  store 
)

Member Data Documentation

§ TYPE

constexpr kind_t fetch_page_log::TYPE = logrec_t::t_fetch_page
static

The documentation for this struct was generated from the following files: