Zero  0.1.0
Public Member Functions | Private Attributes | List of all members
log_i Class Reference

Log-scan iterator. More...

#include <log_core.h>

Public Member Functions

 log_i (log_core &l, const lsn_t &lsn, const bool forward=true)
 start a scan of the given log a the given log sequence number. More...
 
 ~log_i ()
 
bool xct_next (lsn_t &lsn, logrec_t *&r)
 Get the next log record for transaction, put its sequence number in argument lsn. More...
 
bool xct_next (lsn_t &lsn, logrec_t &r)
 
w_rc_tget_last_rc ()
 Get the return code from the last next() call. More...
 

Private Attributes

log_corelog
 
lsn_t cursor
 
w_rc_t last_rc
 
bool forward_scan
 

Detailed Description

Log-scan iterator.

Used in restart to scan the log.

Constructor & Destructor Documentation

§ log_i()

log_i::log_i ( log_core l,
const lsn_t lsn,
const bool  forward = true 
)
inline

start a scan of the given log a the given log sequence number.

§ ~log_i()

log_i::~log_i ( )
inline

Member Function Documentation

§ get_last_rc()

w_rc_t & log_i::get_last_rc ( )
inline

Get the return code from the last next() call.

§ xct_next() [1/2]

bool log_i::xct_next ( lsn_t lsn,
logrec_t *&  r 
)

Get the next log record for transaction, put its sequence number in argument lsn.

§ xct_next() [2/2]

bool log_i::xct_next ( lsn_t lsn,
logrec_t r 
)

Member Data Documentation

§ cursor

lsn_t log_i::cursor
private

§ forward_scan

bool log_i::forward_scan
private

§ last_rc

w_rc_t log_i::last_rc
private

§ log

log_core& log_i::log
private

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