CUBRID Engine
latest
|
#include "connection_defs.h"
Go to the source code of this file.
Classes | |
struct | socket_queue_entry |
Macros | |
#define | SLEEP_SEC(X) sleep(X) |
#define | SLEEP_MILISEC(sec, msec) |
#define | MASTER_ER_SET(...) |
#define | MASTER_ER_SET_WITH_OSERROR(...) |
#define | MASTER_ER_LOG_DEBUG(...) |
#define | GET_REAL_MASTER_CONN_NAME(name) (((char *) name) + 1) |
#define | IS_MASTER_CONN_NAME_DRIVER(name) (*((char *)name) == '-') |
#define | IS_MASTER_CONN_NAME_HA_SERVER(name) (*((char *)name) == '#') |
#define | IS_MASTER_CONN_NAME_HA_COPYLOG(name) (*((char *)name) == '$') |
#define | IS_MASTER_CONN_NAME_HA_APPLYLOG(name) (*((char *)name) == '%') |
Typedefs | |
typedef struct socket_queue_entry | SOCKET_QUEUE_ENTRY |
Functions | |
bool | master_util_config_startup (const char *db_name, int *port_id) |
void | master_util_wait_proc_terminate (int pid) |
Variables | |
pthread_mutex_t | css_Master_er_log_lock |
pthread_mutex_t | css_Master_er_log_enable_lock |
bool | css_Master_er_log_enabled |
#define GET_REAL_MASTER_CONN_NAME | ( | name | ) | (((char *) name) + 1) |
Definition at line 100 of file master_util.h.
Referenced by css_connect_to_master_server().
#define IS_MASTER_CONN_NAME_DRIVER | ( | name | ) | (*((char *)name) == '-') |
Definition at line 101 of file master_util.h.
Referenced by css_process_server_count_info(), css_process_server_list_info(), css_process_shutdown(), and css_process_stop_shutdown().
#define IS_MASTER_CONN_NAME_HA_APPLYLOG | ( | name | ) | (*((char *)name) == '%') |
Definition at line 104 of file master_util.h.
Referenced by css_add_request_to_socket_queue(), css_connect_to_master_server(), css_process_kill_immediate(), css_process_server_count_info(), css_process_server_list_info(), css_process_shutdown(), and css_process_stop_shutdown().
#define IS_MASTER_CONN_NAME_HA_COPYLOG | ( | name | ) | (*((char *)name) == '$') |
Definition at line 103 of file master_util.h.
Referenced by css_add_request_to_socket_queue(), css_connect_to_master_server(), css_process_kill_immediate(), css_process_server_count_info(), css_process_server_list_info(), css_process_shutdown(), and css_process_stop_shutdown().
#define IS_MASTER_CONN_NAME_HA_SERVER | ( | name | ) | (*((char *)name) == '#') |
Definition at line 102 of file master_util.h.
Referenced by css_add_request_to_socket_queue(), css_connect_to_master_server(), css_process_kill_immediate(), css_process_kill_slave(), css_process_server_list_info(), css_process_shutdown(), css_process_stop_shutdown(), and css_return_entry_of_server().
#define MASTER_ER_LOG_DEBUG | ( | ... | ) |
Definition at line 65 of file master_util.h.
Referenced by css_process_heartbeat_request(), hb_check_request_eligibility(), hb_cleanup_conn_and_start_process(), hb_cluster_calc_score(), hb_cluster_initialize(), hb_cluster_job_calc_score(), hb_cluster_job_demote(), hb_cluster_job_queue(), hb_cluster_job_set_expire_and_reorder(), hb_cluster_load_group_and_node_list(), hb_cluster_receive_heartbeat(), hb_cluster_request_heartbeat_to_all(), hb_cluster_send_heartbeat_internal(), hb_cluster_send_heartbeat_req(), hb_master_init(), hb_register_new_process(), hb_reload_config(), hb_resource_check_server_log_grow(), hb_resource_job_change_mode(), hb_resource_job_confirm_cleanup_all(), hb_resource_job_confirm_dereg(), hb_resource_job_confirm_start(), hb_resource_job_demote_confirm_shutdown(), hb_resource_job_proc_dereg(), hb_resource_job_proc_start(), hb_resource_job_queue(), hb_resource_job_set_expire_and_reorder(), hb_resource_receive_get_eof(), hb_resource_shutdown_all_ha_procs(), hb_thread_check_disk_failure(), hb_thread_cluster_reader(), hb_thread_cluster_worker(), and hb_thread_resource_worker().
#define MASTER_ER_SET | ( | ... | ) |
Definition at line 47 of file master_util.h.
Referenced by css_daemon_start(), css_master_cleanup(), css_master_init(), css_process_deact_stop_all(), css_process_deactivate_heartbeat(), css_process_kill_master(), css_process_shutdown(), hb_activate_heartbeat(), hb_check_ping(), hb_cleanup_conn_and_start_process(), hb_cluster_initialize(), hb_cluster_job_calc_score(), hb_cluster_job_check_ping(), hb_cluster_job_check_valid_ping_server(), hb_cluster_job_demote(), hb_cluster_job_failback(), hb_cluster_job_failover(), hb_cluster_job_initialize(), hb_cluster_receive_heartbeat(), hb_cluster_send_heartbeat_internal(), hb_deactivate_heartbeat(), hb_deregister_by_args(), hb_deregister_by_pid(), hb_deregister_process(), hb_get_admin_info_string(), hb_get_node_info_string(), hb_get_ping_host_info_string(), hb_get_process_info_string(), hb_job_queue(), hb_kill_all_heartbeat_process(), hb_master_init(), hb_prepare_deactivate_heartbeat(), hb_reconfig_heartbeat(), hb_register_new_process(), hb_reload_config(), hb_resource_demote_kill_server_proc(), hb_resource_initialize(), hb_resource_job_cleanup_all(), hb_resource_job_confirm_cleanup_all(), hb_resource_job_confirm_start(), hb_resource_job_demote_confirm_shutdown(), hb_resource_job_demote_start_shutdown(), hb_resource_job_initialize(), hb_resource_job_proc_start(), hb_resource_receive_changemode(), hb_resource_send_changemode(), and hb_start_util_process().
#define MASTER_ER_SET_WITH_OSERROR | ( | ... | ) |
Definition at line 56 of file master_util.h.
Referenced by hb_cluster_initialize(), hb_hostname_to_sin_addr(), and hb_thread_initialize().
#define SLEEP_MILISEC | ( | sec, | |
msec | |||
) |
Definition at line 37 of file master_util.h.
#define SLEEP_SEC | ( | X | ) | sleep(X) |
Definition at line 36 of file master_util.h.
typedef struct socket_queue_entry SOCKET_QUEUE_ENTRY |
Definition at line 74 of file master_util.h.
Definition at line 42 of file master_util.c.
References NO_ERROR, NULL, prm_get_master_port_id(), SYSPRM_IGNORE_INTL_PARAMS, and sysprm_load_and_init().
Referenced by main().
void master_util_wait_proc_terminate | ( | int | pid | ) |
Definition at line 72 of file master_util.c.
References FALSE.
Referenced by css_process_shutdown(), and process_slave_kill().
pthread_mutex_t css_Master_er_log_enable_lock |
Definition at line 130 of file master.c.
Referenced by hb_disable_er_log(), hb_enable_er_log(), and hb_get_admin_info_string().
bool css_Master_er_log_enabled |
Definition at line 131 of file master.c.
Referenced by hb_disable_er_log(), hb_enable_er_log(), and hb_get_admin_info_string().