CLASS CkptEndLogRec

#include <logrec.h>

CkptEndLogRec is the log record put into the log when a checkpoint ends.


Fields


struct CkptLogData {

};

CkptLogData is how the buffer beginning at data_ptr for a log record is structured. There are no actual fields, it is just how the byte array can be casted into this struct.


Methods

char* GetTable ( )

Returns the pointer to the dirty page table and the transaction table.

RecErr SetDirtyTable ( int NumPage, int IdArray[ ] , lsn_t RecLSN[ ] )

Used to set the data from the dirty page table onto the end checkpoint log record.

RecErr SetXactTable ( int NumEntries, int Xid[ ] , RecInfo LastLSN[ ] )

Used to set the data from the transaction table onto the end checkpoint log record.

int GetDirtyTableSize ( )

Returns the number of pages in the dirty page table in the log record.

int GetXactTableSize ( )

Returns the number of entries in the transaction table in the log record.

RecErr GetDirtyTable ( int &NumPage, int IdArray[ ], lsn_t RecLSN[ ] )

Fills the entries of IdArray and RecLSN with the dirty page table as stored in the log record.

RecErr GetXactTable ( int &NumEntries, int Xid[ ], lsn_t LastLSN[ ] )

Fills the entries of Xid and LastLSN with the transaction table as stored in the log record.