34 #include <sys/param.h> 276 bool query_end_notify_server;
298 query_end_notify_server =
false;
302 query_end_notify_server =
true;
330 #if defined(CUBRID_DEBUG) 352 #if defined(CUBRID_DEBUG) 413 bool query_end_notify_server;
442 query_end_notify_server =
false;
446 query_end_notify_server =
true;
483 #if defined(CUBRID_DEBUG) 525 strcpy (user_name,
"(unknown)");
530 strcpy (host,
"(unknown)");
581 if (is_server_down ==
false)
726 #if defined(CUBRID_DEBUG) 740 #if defined(CUBRID_DEBUG) 755 #if defined(CUBRID_DEBUG) 786 #if defined(CUBRID_DEBUG) 880 #if defined(CUBRID_DEBUG) 895 #if defined(CUBRID_DEBUG) 897 "Transaction is still active\n");
911 #if defined(CUBRID_DEBUG) 944 #if defined(CUBRID_DEBUG) 993 user_savepoint_list = sp;
1010 user_savepoint_list =
NULL;
1030 for (sp = user_savepoint_list; sp && !found; sp = sp->
next)
1045 for (sp = user_savepoint_list; sp;)
1057 user_savepoint_list = sp;
1111 #if defined(CUBRID_DEBUG) 1203 bool client_decache_all_but_norealclasses)
1218 if (client_decache_all_but_norealclasses ==
true)
1225 #if defined(SA_MODE) 1248 #if defined(CUBRID_DEBUG) 1266 gettimeofday (&tv,
NULL);
1267 msecs = (tv.tv_sec * 1000) + (tv.tv_usec / 1000);
1348 bool old_val =
true;
1414 if (should_conn_reset != 0)
int tran_savepoint_internal(const char *savept_name, SAVEPOINT_TYPE savepoint_type)
#define ER_LK_UNILATERALLY_ABORTED
void tran_set_query_timeout(int query_timeout)
int tran_system_savepoint(const char *savept_name)
void tran_free_savepoint_list(void)
int tran_get_query_timeout(void)
bool ws_has_updated(void)
void tran_reset_latest_query_status(void)
void tran_end_libcas_function(void)
int tran_unilaterally_abort(void)
void tran_get_tran_settings(int *lock_wait_in_msecs, TRAN_ISOLATION *tran_isolation, bool *async_ws)
static DB_NAMELIST * user_savepoint_list
int tran_get_global_tran_info(int gtrid, void *buffer, int size)
int tran_server_savepoint(const char *savept_name, LOG_LSA *savept_lsa)
bool tran_has_updated(void)
void nlist_free(DB_NAMELIST *list)
#define ASSERT_ERROR_AND_SET(error_code)
TRAN_STATE tran_server_2pc_prepare_global_tran(int gtrid)
#define BOOT_IS_CLIENT_RESTARTED()
int tran_2pc_prepare_global_tran(int gtrid)
int tran_server_2pc_recovery_prepared(int gtrids[], int size)
bool tran_was_latest_query_ended(void)
void ws_decache_allxlockmops_but_norealclasses(void)
bool tran_is_active_and_has_updated(void)
int tm_Tran_invalidate_snapshot
int tran_server_set_global_tran_info(int gtrid, void *info, int size)
const char * log_state_string(TRAN_STATE state)
#define er_log_debug(...)
char * getuserid(char *string, int size)
void db_ws_free(void *ptr)
static UINT64 tran_current_timemillis(void)
void ws_increment_mvcc_snapshot_version(void)
int tran_server_2pc_start(void)
void sm_transaction_boundary(void)
static int tm_Query_timeout
int tran_reset_wait_times(int wait_in_msecs)
void er_set(int severity, const char *file_name, const int line_no, int err_id, int num_args,...)
void tran_set_latest_query_status(int end_query_result, int tran_state, int should_conn_reset)
int tran_abort_upto_system_savepoint(const char *savepoint_name)
void tran_begin_libcas_function(void)
#define DB_CONNECTION_STATUS_RESET
int tran_server_has_updated(void)
int tran_2pc_prepare(void)
void er_stack_clearall(void)
int tran_commit(bool retain_lock)
bool tran_was_latest_query_committed(void)
#define TM_TRAN_WAIT_MSECS()
bool tran_get_check_interrupt(void)
TRAN_STATE tran_server_commit(bool retain_lock)
#define TRAN_LOCK_INFINITE_WAIT
void db_clear_client_query_result(int notify_server, bool end_holdable)
int tran_abort_only_client(bool is_server_down)
int locator_assign_all_permanent_oids(void)
struct db_namelist * next
TRAN_STATE tran_server_2pc_prepare(void)
const char * er_msg(void)
LC_FETCH_VERSION_TYPE tm_Tran_read_fetch_instance_version
bool tran_is_reset_required(void)
TRAN_ISOLATION tm_Tran_isolation
int tran_server_2pc_attach_global_tran(int gtrid)
LOCK tm_Tran_rep_read_lock
bool tran_is_in_libcas(void)
int tran_flush_to_commit(void)
int tran_internal_abort_upto_savepoint(const char *savepoint_name, SAVEPOINT_TYPE savepoint_type, bool client_decache_all_but_norealclasses)
int tran_reset_isolation(TRAN_ISOLATION isolation, bool async_ws)
TRAN_STATE tran_server_abort(void)
bool tran_was_latest_query_aborted(void)
void ws_clear_all_hints(bool retain_lock)
int tm_Tran_latest_query_status
void tran_cache_tran_settings(int tran_index, int lock_timeout, TRAN_ISOLATION tran_isolation)
int tran_server_get_global_tran_info(int gtrid, void *buffer, int size)
#define ER_MVCC_LOG_INVALID_ISOLATION_LEVEL
static UINT64 tm_Query_begin
int tran_2pc_attach_global_tran(int gtrid)
int locator_all_flush(void)
void tr_check_abort_triggers(void)
int tran_abort_upto_user_savepoint(const char *savepoint_name)
#define TM_TRAN_ASYNC_WS()
static void tran_free_list_upto_savepoint(const char *savept_name)
int intl_mbs_casecmp(const char *mbs1, const char *mbs2)
bool tm_Tran_check_interrupt
void * db_ws_alloc(size_t size)
#define ER_TM_SERVER_DOWN_UNILATERALLY_ABORTED
enum savepoint_type SAVEPOINT_TYPE
#define ER_NET_SERVER_CRASHED
#define IS_VALID_ISOLATION_LEVEL(isolation_level)
void ws_filter_dirty(void)
void ws_abort_mops(bool only_unpinned)
TRAN_STATE tran_server_partial_abort(const char *savept_name, LOG_LSA *savept_lsa)
int tran_2pc_recovery_prepared(int gtrids[], int size)
int log_reset_isolation(TRAN_ISOLATION isolation)
int tr_check_commit_triggers(DB_TRIGGER_TIME time)
bool log_does_allow_replication(void)
char * ws_copy_string(const char *str)
#define CUB_MAXHOSTNAMELEN
#define DB_CONNECTION_STATUS_NOT_CONNECTED
#define GETHOSTNAME(p, l)
bool tran_set_check_interrupt(bool flag)
int tran_set_global_tran_info(int gtrid, void *info, int size)
int tran_server_is_active_and_has_updated(void)
#define TM_TRAN_ISOLATION()
static int tran_add_savepoint(const char *savept_name)
void tr_check_rollback_triggers(DB_TRIGGER_TIME time)
int log_reset_wait_msecs(int wait_msecs)