CUBRID Engine  latest
log_comm.h File Reference
#include "dbtran_def.h"
#include "storage_common.h"
#include <stdio.h>
Include dependency graph for log_comm.h:

Go to the source code of this file.

Macros

#define TRAN_LOCK_INFINITE_WAIT   (-1)
 
#define TIME_SIZE_OF_DUMP_LOG_INFO   30
 

Typedefs

typedef DB_TRAN_ISOLATION TRAN_ISOLATION
 

Enumerations

enum  TRAN_STATE {
  TRAN_RECOVERY, TRAN_ACTIVE, TRAN_UNACTIVE_COMMITTED, TRAN_UNACTIVE_WILL_COMMIT,
  TRAN_UNACTIVE_COMMITTED_WITH_POSTPONE, TRAN_UNACTIVE_TOPOPE_COMMITTED_WITH_POSTPONE, TRAN_UNACTIVE_ABORTED, TRAN_UNACTIVE_UNILATERALLY_ABORTED,
  TRAN_UNACTIVE_2PC_PREPARE, TRAN_UNACTIVE_2PC_COLLECTING_PARTICIPANT_VOTES, TRAN_UNACTIVE_2PC_ABORT_DECISION, TRAN_UNACTIVE_2PC_COMMIT_DECISION,
  TRAN_UNACTIVE_COMMITTED_INFORMING_PARTICIPANTS, TRAN_UNACTIVE_ABORTED_INFORMING_PARTICIPANTS, TRAN_UNACTIVE_UNKNOWN
}
 
enum  LOG_RESULT_TOPOP { LOG_RESULT_TOPOP_COMMIT, LOG_RESULT_TOPOP_ABORT, LOG_RESULT_TOPOP_ATTACH_TO_OUTER }
 

Functions

const char * log_state_string (TRAN_STATE state)
 
const char * log_state_short_string (TRAN_STATE state)
 
const char * log_isolation_string (TRAN_ISOLATION isolation)
 
int log_dump_log_info (const char *logname_info, bool also_stdout, const char *fmt,...)
 
bool log_does_allow_replication (void)
 

Variables

const int LOG_MIN_NBUFFERS
 

Macro Definition Documentation

#define TIME_SIZE_OF_DUMP_LOG_INFO   30

Definition at line 31 of file log_comm.h.

Referenced by log_dump_log_info(), and logpb_get_guess_archive_num().

Typedef Documentation

Definition at line 81 of file log_comm.h.

Enumeration Type Documentation

Enumerator
LOG_RESULT_TOPOP_COMMIT 
LOG_RESULT_TOPOP_ABORT 
LOG_RESULT_TOPOP_ATTACH_TO_OUTER 

Definition at line 73 of file log_comm.h.

enum TRAN_STATE
Enumerator
TRAN_RECOVERY 
TRAN_ACTIVE 
TRAN_UNACTIVE_COMMITTED 
TRAN_UNACTIVE_WILL_COMMIT 
TRAN_UNACTIVE_COMMITTED_WITH_POSTPONE 
TRAN_UNACTIVE_TOPOPE_COMMITTED_WITH_POSTPONE 
TRAN_UNACTIVE_ABORTED 
TRAN_UNACTIVE_UNILATERALLY_ABORTED 
TRAN_UNACTIVE_2PC_PREPARE 
TRAN_UNACTIVE_2PC_COLLECTING_PARTICIPANT_VOTES 
TRAN_UNACTIVE_2PC_ABORT_DECISION 
TRAN_UNACTIVE_2PC_COMMIT_DECISION 
TRAN_UNACTIVE_COMMITTED_INFORMING_PARTICIPANTS 
TRAN_UNACTIVE_ABORTED_INFORMING_PARTICIPANTS 
TRAN_UNACTIVE_UNKNOWN 

Definition at line 36 of file log_comm.h.

Function Documentation

const char* log_isolation_string ( TRAN_ISOLATION  isolation)

Definition at line 176 of file log_comm.c.

References i, log_Isolation_names, and isolation_name::name.

Referenced by logtb_descriptors_start_scan(), logtb_dump_tdes(), and xlock_dump().

Here is the caller graph for this function:

const char* log_state_short_string ( TRAN_STATE  state)

Definition at line 152 of file log_comm.c.

References log_state_string().

Referenced by logtb_descriptors_start_scan().

Here is the caller graph for this function:

Variable Documentation

const int LOG_MIN_NBUFFERS

Definition at line 113 of file log_comm.c.