CUBRID Engine  latest
log_record.hpp File Reference
#include "client_credentials.hpp"
#include "log_lsa.hpp"
#include "recovery.h"
#include "storage_common.h"
#include "system.h"
Include dependency graph for log_record.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  log_rec_header
 
struct  log_data
 
struct  log_rec_undoredo
 
struct  log_rec_undo
 
struct  log_rec_redo
 
struct  log_vacuum_info
 
struct  log_rec_mvcc_undoredo
 
struct  log_rec_mvcc_undo
 
struct  log_rec_mvcc_redo
 
struct  log_rec_replication
 
struct  log_rec_donetime
 
struct  log_rec_ha_server_state
 
struct  log_rec_dbout_redo
 
struct  log_rec_compensate
 
struct  log_rec_start_postpone
 
struct  log_rec_sysop_end
 
struct  log_rec_sysop_start_postpone
 
struct  log_rec_run_postpone
 
struct  log_rec_chkpt
 
struct  log_info_chkpt_trans
 
struct  log_info_chkpt_sysop
 
struct  log_rec_savept
 
struct  log_rec_2pc_prepcommit
 
struct  log_rec_2pc_start
 
struct  log_rec_2pc_particp_ack
 

Macros

#define LOG_SYSOP_END_TYPE_CHECK(type)
 
#define LOG_GET_LOG_RECORD_HEADER(log_page_p, lsa)   ((LOG_RECORD_HEADER *) ((log_page_p)->area + (lsa)->offset))
 
#define LOG_IS_UNDO_RECORD_TYPE(type)   (((type) == LOG_UNDO_DATA) || ((type) == LOG_MVCC_UNDO_DATA))
 
#define LOG_IS_REDO_RECORD_TYPE(type)   (((type) == LOG_REDO_DATA) || ((type) == LOG_MVCC_REDO_DATA))
 
#define LOG_IS_UNDOREDO_RECORD_TYPE(type)
 
#define LOG_IS_DIFF_UNDOREDO_TYPE(type)   ((type) == LOG_DIFF_UNDOREDO_DATA || (type) == LOG_MVCC_DIFF_UNDOREDO_DATA)
 
#define LOG_IS_MVCC_OP_RECORD_TYPE(type)
 

Typedefs

typedef enum log_rectype LOG_RECTYPE
 
typedef struct log_rec_header LOG_RECORD_HEADER
 
typedef struct log_data LOG_DATA
 
typedef struct log_rec_undoredo LOG_REC_UNDOREDO
 
typedef struct log_rec_undo LOG_REC_UNDO
 
typedef struct log_rec_redo LOG_REC_REDO
 
typedef struct log_vacuum_info LOG_VACUUM_INFO
 
typedef struct log_rec_mvcc_undoredo LOG_REC_MVCC_UNDOREDO
 
typedef struct log_rec_mvcc_undo LOG_REC_MVCC_UNDO
 
typedef struct log_rec_mvcc_redo LOG_REC_MVCC_REDO
 
typedef struct log_rec_replication LOG_REC_REPLICATION
 
typedef struct log_rec_donetime LOG_REC_DONETIME
 
typedef struct log_rec_ha_server_state LOG_REC_HA_SERVER_STATE
 
typedef struct log_rec_dbout_redo LOG_REC_DBOUT_REDO
 
typedef struct log_rec_compensate LOG_REC_COMPENSATE
 
typedef struct log_rec_start_postpone LOG_REC_START_POSTPONE
 
typedef enum log_sysop_end_type LOG_SYSOP_END_TYPE
 
typedef struct log_rec_sysop_end LOG_REC_SYSOP_END
 
typedef struct log_rec_sysop_start_postpone LOG_REC_SYSOP_START_POSTPONE
 
typedef struct log_rec_run_postpone LOG_REC_RUN_POSTPONE
 
typedef struct log_rec_chkpt LOG_REC_CHKPT
 
typedef struct log_info_chkpt_trans LOG_INFO_CHKPT_TRANS
 
typedef struct log_info_chkpt_sysop LOG_INFO_CHKPT_SYSOP
 
typedef struct log_rec_savept LOG_REC_SAVEPT
 
typedef struct log_rec_2pc_prepcommit LOG_REC_2PC_PREPCOMMIT
 
typedef struct log_rec_2pc_start LOG_REC_2PC_START
 
typedef struct log_rec_2pc_particp_ack LOG_REC_2PC_PARTICP_ACK
 

Enumerations

enum  log_rectype {
  LOG_SMALLER_LOGREC_TYPE = 0, LOG_UNDOREDO_DATA = 2, LOG_UNDO_DATA = 3, LOG_REDO_DATA = 4,
  LOG_DBEXTERN_REDO_DATA = 5, LOG_POSTPONE = 6, LOG_RUN_POSTPONE = 7, LOG_COMPENSATE = 8,
  LOG_WILL_COMMIT = 14, LOG_COMMIT_WITH_POSTPONE = 15, LOG_COMMIT = 17, LOG_SYSOP_START_POSTPONE = 18,
  LOG_SYSOP_END = 20, LOG_ABORT = 22, LOG_ABORT_TOPOPE = 24, LOG_START_CHKPT = 25,
  LOG_END_CHKPT = 26, LOG_SAVEPOINT = 27, LOG_2PC_PREPARE = 28, LOG_2PC_START = 29,
  LOG_2PC_COMMIT_DECISION = 30, LOG_2PC_ABORT_DECISION = 31, LOG_2PC_COMMIT_INFORM_PARTICPS = 32, LOG_2PC_ABORT_INFORM_PARTICPS = 33,
  LOG_2PC_RECV_ACK = 34, LOG_END_OF_LOG = 35, LOG_DUMMY_HEAD_POSTPONE = 36, LOG_DUMMY_CRASH_RECOVERY = 37,
  LOG_REPLICATION_DATA = 39, LOG_REPLICATION_STATEMENT = 40, LOG_DIFF_UNDOREDO_DATA = 43, LOG_DUMMY_HA_SERVER_STATE = 44,
  LOG_DUMMY_OVF_RECORD = 45, LOG_MVCC_UNDOREDO_DATA = 46, LOG_MVCC_UNDO_DATA = 47, LOG_MVCC_REDO_DATA = 48,
  LOG_MVCC_DIFF_UNDOREDO_DATA = 49, LOG_SYSOP_ATOMIC_START = 50, LOG_DUMMY_GENERIC, LOG_LARGER_LOGREC_TYPE
}
 
enum  log_sysop_end_type {
  LOG_SYSOP_END_COMMIT, LOG_SYSOP_END_ABORT, LOG_SYSOP_END_LOGICAL_UNDO, LOG_SYSOP_END_LOGICAL_MVCC_UNDO,
  LOG_SYSOP_END_LOGICAL_COMPENSATE, LOG_SYSOP_END_LOGICAL_RUN_POSTPONE
}
 

Macro Definition Documentation

#define LOG_IS_DIFF_UNDOREDO_TYPE (   type)    ((type) == LOG_DIFF_UNDOREDO_DATA || (type) == LOG_MVCC_DIFF_UNDOREDO_DATA)

Definition at line 424 of file log_record.hpp.

Referenced by la_get_log_data(), and la_get_next_update_log().

#define LOG_IS_REDO_RECORD_TYPE (   type)    (((type) == LOG_REDO_DATA) || ((type) == LOG_MVCC_REDO_DATA))
#define LOG_IS_UNDO_RECORD_TYPE (   type)    (((type) == LOG_UNDO_DATA) || ((type) == LOG_MVCC_UNDO_DATA))

Definition at line 412 of file log_record.hpp.

Referenced by prior_lsa_gen_undoredo_record_from_crumbs().

#define LOG_IS_UNDOREDO_RECORD_TYPE (   type)

Typedef Documentation

typedef struct log_data LOG_DATA

Definition at line 152 of file log_record.hpp.

Definition at line 359 of file log_record.hpp.

Definition at line 341 of file log_record.hpp.

Definition at line 400 of file log_record.hpp.

Definition at line 375 of file log_record.hpp.

Definition at line 387 of file log_record.hpp.

typedef struct log_rec_chkpt LOG_REC_CHKPT

Definition at line 332 of file log_record.hpp.

Definition at line 257 of file log_record.hpp.

Definition at line 249 of file log_record.hpp.

Definition at line 232 of file log_record.hpp.

Definition at line 239 of file log_record.hpp.

Definition at line 215 of file log_record.hpp.

Definition at line 206 of file log_record.hpp.

Definition at line 197 of file log_record.hpp.

typedef struct log_rec_redo LOG_REC_REDO

Definition at line 179 of file log_record.hpp.

Definition at line 223 of file log_record.hpp.

Definition at line 323 of file log_record.hpp.

Definition at line 367 of file log_record.hpp.

Definition at line 266 of file log_record.hpp.

Definition at line 292 of file log_record.hpp.

typedef struct log_rec_undo LOG_REC_UNDO

Definition at line 171 of file log_record.hpp.

Definition at line 162 of file log_record.hpp.

Definition at line 141 of file log_record.hpp.

typedef enum log_rectype LOG_RECTYPE

Definition at line 138 of file log_record.hpp.

Definition at line 282 of file log_record.hpp.

Definition at line 187 of file log_record.hpp.

Enumeration Type Documentation

Enumerator
LOG_SMALLER_LOGREC_TYPE 
LOG_UNDOREDO_DATA 
LOG_UNDO_DATA 
LOG_REDO_DATA 
LOG_DBEXTERN_REDO_DATA 
LOG_POSTPONE 
LOG_RUN_POSTPONE 
LOG_COMPENSATE 
LOG_WILL_COMMIT 
LOG_COMMIT_WITH_POSTPONE 
LOG_COMMIT 
LOG_SYSOP_START_POSTPONE 
LOG_SYSOP_END 
LOG_ABORT 
LOG_ABORT_TOPOPE 
LOG_START_CHKPT 
LOG_END_CHKPT 
LOG_SAVEPOINT 
LOG_2PC_PREPARE 
LOG_2PC_START 
LOG_2PC_COMMIT_DECISION 
LOG_2PC_ABORT_DECISION 
LOG_2PC_COMMIT_INFORM_PARTICPS 
LOG_2PC_ABORT_INFORM_PARTICPS 
LOG_2PC_RECV_ACK 
LOG_END_OF_LOG 
LOG_DUMMY_HEAD_POSTPONE 
LOG_DUMMY_CRASH_RECOVERY 
LOG_REPLICATION_DATA 
LOG_REPLICATION_STATEMENT 
LOG_DIFF_UNDOREDO_DATA 
LOG_DUMMY_HA_SERVER_STATE 
LOG_DUMMY_OVF_RECORD 
LOG_MVCC_UNDOREDO_DATA 
LOG_MVCC_UNDO_DATA 
LOG_MVCC_REDO_DATA 
LOG_MVCC_DIFF_UNDOREDO_DATA 
LOG_SYSOP_ATOMIC_START 
LOG_DUMMY_GENERIC 
LOG_LARGER_LOGREC_TYPE 

Definition at line 35 of file log_record.hpp.

Enumerator
LOG_SYSOP_END_COMMIT 
LOG_SYSOP_END_ABORT 
LOG_SYSOP_END_LOGICAL_UNDO 
LOG_SYSOP_END_LOGICAL_MVCC_UNDO 
LOG_SYSOP_END_LOGICAL_COMPENSATE 
LOG_SYSOP_END_LOGICAL_RUN_POSTPONE 

Definition at line 273 of file log_record.hpp.