CLASS CommitLogRec
#include <logrec.h>
CommitLogRec is the log record put into the log when transactions commit.
Fields
struct EndLogData {
LOG_TYPE type;
};
lsn_t prevlsn;
int xid;
EndLogData 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
lsn_t GetPrevLSN ( )
Returns prevlsn field (the LSN of the action taken before by this transaction).
int Getxid ( )
Returns xid field (the transaction id or transaction number, e.g. - 1 for T1)
RecErr SetPrevLSN ( lsn_t newlsn )
Sets the prevlsn field
RecErr Setxid ( int newxid )
Sets the xid field