CUBRID Engine
latest
|
#include "config.h"
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
#include <assert.h>
#include "porting.h"
#include "util_func.h"
#include "boot_cl.h"
#include "memory_alloc.h"
#include "area_alloc.h"
#include "storage_common.h"
#include "oid.h"
#include "error_manager.h"
#include "work_space.h"
#include "schema_manager.h"
#include "authenticate.h"
#include "trigger_manager.h"
#include "db.h"
#include "dynamic_load.h"
#include "transaction_cl.h"
#include "log_comm.h"
#include "server_interface.h"
#include "release_string.h"
#include "system_parameter.h"
#include "locator_cl.h"
#include "databases_file.h"
#include "db_query.h"
#include "language_support.h"
#include "message_catalog.h"
#include "parser.h"
#include "perf_monitor.h"
#include "set_object.h"
#include "cnv.h"
#include "environment_variable.h"
#include "locator.h"
#include "transform.h"
#include "jansson.h"
#include "jsp_cl.h"
#include "client_support.h"
#include "es.h"
#include "tsc_timer.h"
#include "show_meta.h"
#include "tz_support.h"
#include "dbtype.h"
#include "object_primitive.h"
#include "connection_globals.h"
#include "network_interface_cl.h"
#include "tcp.h"
Go to the source code of this file.
Classes | |
struct | column |
Macros | |
#define | BOOT_FORMAT_MAX_LENGTH 500 |
#define | BOOT_NO_OPT_CAP 0 |
#define | BOOT_CHECK_HA_DELAY_CAP NET_CAP_HA_REPL_DELAY |
#define | CT_DBCHARSET_CHARSET_ID "charset_id" |
#define | CT_DBCHARSET_CHARSET_NAME "charset_name" |
#define | CT_DBCHARSET_DEFAULT_COLLATION "default_collation" |
#define | CT_DBCHARSET_CHAR_SIZE "char_size" |
#define | CT_DUAL_DUMMY "dummy" |
Typedefs | |
typedef int(* | DEF_FUNCTION) () |
typedef int(* | DEF_CLASS_FUNCTION) (MOP) |
typedef struct column | COLUMN |
Variables | |
static BOOT_SERVER_CREDENTIAL | boot_Server_credential |
static const char * | boot_Client_no_user_string = "(nouser)" |
static const char * | boot_Client_id_unknown_string = "(unknown)" |
static char | boot_Client_id_buffer [L_cuserid+1] |
static char | boot_Db_path_buf [PATH_MAX] |
static char | boot_Log_path_buf [PATH_MAX] |
static char | boot_Lob_path_buf [PATH_MAX] |
static char | boot_Db_host_buf [CUB_MAXHOSTNAMELEN+1] |
VOLID | boot_User_volid = 0 |
char | boot_Host_name [CUB_MAXHOSTNAMELEN] = "" |
static char | boot_Volume_label [PATH_MAX] = " " |
static bool | boot_Is_client_all_final = true |
static bool | boot_Set_client_at_exit = false |
static int | boot_Process_id = -1 |
#define BOOT_CHECK_HA_DELAY_CAP NET_CAP_HA_REPL_DELAY |
Definition at line 116 of file boot_cl.c.
Referenced by boot_client_all_finalize(), and boot_restart_client().
#define BOOT_FORMAT_MAX_LENGTH 500 |
Definition at line 112 of file boot_cl.c.
Referenced by boot_initialize_client().
#define BOOT_NO_OPT_CAP 0 |
Definition at line 115 of file boot_cl.c.
Referenced by boot_initialize_client(), and boot_restart_client().
#define CT_DBCHARSET_CHAR_SIZE "char_size" |
Definition at line 3818 of file boot_cl.c.
Referenced by boot_add_charsets(), boot_define_charsets(), and boot_define_view_db_charset().
#define CT_DBCHARSET_CHARSET_ID "charset_id" |
Definition at line 3815 of file boot_cl.c.
Referenced by boot_add_charsets(), boot_define_charsets(), and boot_define_view_db_charset().
#define CT_DBCHARSET_CHARSET_NAME "charset_name" |
Definition at line 3816 of file boot_cl.c.
Referenced by boot_add_charsets(), boot_define_charsets(), and boot_define_view_db_charset().
#define CT_DBCHARSET_DEFAULT_COLLATION "default_collation" |
Definition at line 3817 of file boot_cl.c.
Referenced by boot_add_charsets(), boot_define_charsets(), and boot_define_view_db_charset().
#define CT_DUAL_DUMMY "dummy" |
Definition at line 3939 of file boot_cl.c.
Referenced by boot_define_dual().
|
static |
Definition at line 3831 of file boot_cl.c.
References assert, CT_DBCHARSET_CHAR_SIZE, CT_DBCHARSET_CHARSET_ID, CT_DBCHARSET_CHARSET_NAME, CT_DBCHARSET_DEFAULT_COLLATION, db_create_internal(), db_make_int(), db_make_varchar(), db_put_internal(), er_errid(), ER_LANG_CODESET_NOT_AVAILABLE, i, INTL_CODESET_BINARY, INTL_CODESET_LAST, INTL_CODESET_MULT, lang_charset_cubrid_name(), lang_collation_count(), LANG_GET_BINARY_COLLATION, LANG_SYS_CODESET, LANG_SYS_COLLATION, NO_ERROR, NULL, and strlen.
Referenced by boot_define_charsets().
int boot_add_collations | ( | MOP | class_mop | ) |
Definition at line 3661 of file boot_cl.c.
References assert, lang_collation::built_in, coll_data::checksum, lang_collation::codeset, lang_collation::coll, coll_data::coll_id, coll_data::coll_name, coll_data::count_contr, CT_DBCOLL_BUILT_IN_COLUMN, CT_DBCOLL_CHARSET_ID_COLUMN, CT_DBCOLL_CHECKSUM_COLUMN, CT_DBCOLL_COLL_ID_COLUMN, CT_DBCOLL_COLL_NAME_COLUMN, CT_DBCOLL_CONTRACTIONS_COLUMN, CT_DBCOLL_EXPANSIONS_COLUMN, CT_DBCOLL_UCA_STRENGTH, db_create_internal(), db_make_int(), db_make_varchar(), db_put_internal(), er_errid(), i, LANG_COLL_DEFAULT, lang_collation_count(), lang_get_collation(), LANG_MAX_COLLATIONS, LANG_SYS_CODESET, LANG_SYS_COLLATION, NO_ERROR, NULL, uca_options::sett_expansions, uca_options::sett_strength, strlen, and coll_data::uca_opt.
Referenced by boot_define_collations(), and synccoll_force().
|
static |
Definition at line 2943 of file boot_cl.c.
References assert, db_create_internal(), db_make_int(), db_make_varchar(), db_put_internal(), DB_TYPE_LAST, er_errid(), i, LANG_SYS_CODESET, LANG_SYS_COLLATION, NO_ERROR, NULL, and strlen.
Referenced by boot_define_data_type().
void boot_clear_host_connected | ( | void | ) |
Definition at line 5717 of file boot_cl.c.
Referenced by db_clear_host_connected().
|
static |
Definition at line 232 of file boot_cl.c.
References boot_Process_id, boot_Set_client_at_exit, boot_shutdown_client_at_exit(), NO_ERROR, and tran_cache_tran_settings().
Referenced by boot_client_all_finalize(), boot_initialize_client(), boot_restart_client(), and boot_server_die_or_changed().
void boot_client_all_finalize | ( | bool | is_er_final | ) |
Definition at line 1536 of file boot_cl.c.
References area_final(), ARG_FILE_LINE, assert, au_final(), BOOT_CHECK_HA_DELAY_CAP, boot_client(), boot_Is_client_all_final, BOOT_IS_CLIENT_RESTARTED, cfg_get_hosts(), cnv_cleanup(), co_final(), css_check_server_alive_fn, css_terminate(), CUB_MAXHOSTNAMELEN, db_clear_delayed_hosts_count(), DB_CONNECT_ORDER_RANDOM, boot_server_credential::db_full_name, db_get_delayed_hosts_count(), db_get_max_num_delayed_hosts_lookup(), DB_HS_CONN_FAILURE, DB_HS_CONN_TIMEOUT, DB_HS_UNUSABLE_DATABASES, boot_server_credential::db_lang, db_private_free_and_init, db_set_connected_host_status(), db_set_host_status(), dl_destroy_module(), ER_ALL_FINAL, ER_BO_CONNECT_FAILED, er_clear(), ER_CSS_CLIENTS_EXCEEDED, ER_ERROR_SEVERITY, er_final(), ER_GENERIC_ERROR, er_log_debug, ER_NET_CANT_CONNECT_SERVER, ER_NET_DIFFERENT_RELEASE, ER_NET_HS_UNKNOWN_SERVER_REL, ER_NET_NO_MASTER, ER_NET_NO_SERVER_HOST, ER_NET_SERVER_HAND_SHAKE, er_set(), ER_WARNING_SEVERITY, ERR_CSS_ERROR_FROM_SERVER, ERR_CSS_TCP_CANNOT_CONNECT_TO_MASTER, ERR_CSS_TCP_CONNECT_TIMEDOUT, error(), es_final(), boot_server_credential::host_name, database_info::hosts, lang_final(), boot_server_credential::lob_path, locator_free_areas(), MAX_NUM_DB_HOSTS, msgcat_final(), database_info::name, net_client_init(), net_client_ping_server_with_handshake(), NO_ERROR, NULL, NULL_TRAN_INDEX, database_info::num_hosts, parser_final(), perfmon_finalize(), boot_server_credential::server_session_key, SERVER_SESSION_KEY_SIZE, set_final(), showstmt_metadata_final(), sm_final(), sm_flush_static_methods(), strncpy_bufsize, sysprm_final(), tp_final(), tr_final(), TRAN_DEFAULT_ISOLATION_LEVEL, tran_free_savepoint_list(), TRAN_LOCK_INFINITE_WAIT, tz_unload(), util_shuffle_string_array(), and ws_final().
Referenced by boot_initialize_client(), boot_restart_client(), and boot_shutdown_client().
|
static |
Definition at line 5848 of file boot_cl.c.
References ARG_FILE_LINE, CT_HA_APPLY_INFO_NAME, CT_SERIAL_NAME, er_errid(), ER_FAILED, ER_FATAL_ERROR_SEVERITY, ER_GENERIC_ERROR, er_set(), error(), NO_ERROR, NULL, vid_oid::oid, OID_CACHE_HA_APPLY_INFO_CLASS_ID, OID_CACHE_SERIAL_CLASS_ID, db_object::oid_info, oid_set_cached_class_oid(), and sm_find_class().
Referenced by boot_restart_client().
|
static |
Definition at line 2002 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, CT_CLASS_NAME, CT_DOMAIN_NAME, db_add_constraint(), DB_CONSTRAINT_INDEX, er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), and smt_edit_class_mop().
Referenced by catcls_class_install().
|
static |
Definition at line 3881 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, boot_add_charsets(), CT_DBCHARSET_CHAR_SIZE, CT_DBCHARSET_CHARSET_ID, CT_DBCHARSET_CHARSET_NAME, CT_DBCHARSET_DEFAULT_COLLATION, er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), and smt_edit_class_mop().
Referenced by catcls_class_install().
|
static |
Definition at line 1799 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, AU_USER_CLASS_NAME, CT_ATTRIBUTE_NAME, CT_CLASS_NAME, CT_INDEX_NAME, CT_METHFILE_NAME, CT_METHOD_NAME, CT_PARTITION_NAME, CT_QUERYSPEC_NAME, db_add_constraint(), DB_CONSTRAINT_INDEX, er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), and smt_edit_class_mop().
Referenced by catcls_class_install().
|
static |
Definition at line 2786 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, AU_USER_CLASS_NAME, CT_CLASS_NAME, db_add_constraint(), DB_CONSTRAINT_INDEX, er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), and smt_edit_class_mop().
Referenced by catcls_class_install().
|
static |
Definition at line 3733 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, boot_add_collations(), CT_DBCOLL_BUILT_IN_COLUMN, CT_DBCOLL_CHARSET_ID_COLUMN, CT_DBCOLL_CHECKSUM_COLUMN, CT_DBCOLL_COLL_ID_COLUMN, CT_DBCOLL_COLL_NAME_COLUMN, CT_DBCOLL_CONTRACTIONS_COLUMN, CT_DBCOLL_EXPANSIONS_COLUMN, CT_DBCOLL_UCA_STRENGTH, er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), and smt_edit_class_mop().
Referenced by catcls_class_install().
|
static |
Definition at line 2995 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, boot_add_data_type(), er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), and smt_edit_class_mop().
Referenced by catcls_class_install().
|
static |
Definition at line 2118 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, CT_CLASS_NAME, CT_DOMAIN_NAME, db_add_constraint(), DB_CONSTRAINT_INDEX, er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), and smt_edit_class_mop().
Referenced by catcls_class_install().
|
static |
Definition at line 3950 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, CT_DUAL_DUMMY, db_create_internal(), db_make_varchar(), db_put_internal(), er_errid(), LANG_SYS_CODESET, LANG_SYS_COLLATION, locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), smt_edit_class_mop(), and strlen.
Referenced by catcls_class_install().
|
static |
Definition at line 3416 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, db_add_constraint(), db_constrain_non_null(), DB_CONSTRAINT_UNIQUE, er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), and smt_edit_class_mop().
Referenced by catcls_class_install().
|
static |
Definition at line 2574 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, CT_CLASS_NAME, CT_INDEXKEY_NAME, db_add_constraint(), DB_CONSTRAINT_INDEX, er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), and smt_edit_class_mop().
Referenced by catcls_class_install().
|
static |
Definition at line 2693 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, CT_INDEX_NAME, db_add_constraint(), DB_CONSTRAINT_INDEX, db_make_int(), er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), smt_edit_class_mop(), and smt_set_attribute_default().
Referenced by catcls_class_install().
|
static |
Definition at line 2385 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, CT_DOMAIN_NAME, CT_METHSIG_NAME, db_add_constraint(), DB_CONSTRAINT_INDEX, er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), and smt_edit_class_mop().
Referenced by catcls_class_install().
|
static |
Definition at line 2456 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, CT_CLASS_NAME, db_add_constraint(), DB_CONSTRAINT_INDEX, er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), and smt_edit_class_mop().
Referenced by catcls_class_install().
|
static |
Definition at line 2308 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, CT_METHARG_NAME, CT_METHOD_NAME, db_add_constraint(), DB_CONSTRAINT_INDEX, er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), and smt_edit_class_mop().
Referenced by catcls_class_install().
|
static |
Definition at line 2225 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, CT_CLASS_NAME, CT_METHSIG_NAME, db_add_constraint(), DB_CONSTRAINT_INDEX, er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), and smt_edit_class_mop().
Referenced by catcls_class_install().
|
static |
Definition at line 2860 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, CT_CLASS_NAME, db_add_constraint(), DB_CONSTRAINT_INDEX, er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), and smt_edit_class_mop().
Referenced by catcls_class_install().
|
static |
Definition at line 2518 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, CT_CLASS_NAME, db_add_constraint(), DB_CONSTRAINT_INDEX, er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), and smt_edit_class_mop().
Referenced by catcls_class_install().
|
static |
Definition at line 3230 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, AU_USER_CLASS_NAME, db_add_constraint(), db_constrain_non_null(), DB_CONSTRAINT_PRIMARY_KEY, db_make_int(), db_make_numeric(), DB_MAX_NUMERIC_PRECISION, DB_NUMERIC_BUF_SIZE, default_value, er_errid(), locator_has_heap(), NO_ERROR, NULL, numeric_coerce_int_to_num(), sm_update_class(), smt_add_attribute(), smt_add_class_method(), smt_edit_class_mop(), and smt_set_attribute_default().
Referenced by catcls_class_install().
|
static |
Definition at line 3050 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, AU_USER_CLASS_NAME, CT_STORED_PROC_ARGS_NAME, db_add_constraint(), DB_CONSTRAINT_UNIQUE, er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), and smt_edit_class_mop().
Referenced by catcls_class_install().
|
static |
Definition at line 3150 of file boot_cl.c.
References assert, AU_ALTER, au_change_owner(), Au_dba_user, db_add_constraint(), DB_CONSTRAINT_INDEX, er_errid(), locator_has_heap(), NO_ERROR, NULL, sm_update_class(), smt_add_attribute(), and smt_edit_class_mop().
Referenced by catcls_class_install().
|
static |
Definition at line 4315 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, AU_USER_CLASS_NAME, CT_ATTRIBUTE_NAME, CT_CHARSET_NAME, CT_CLASS_NAME, CT_CLASSAUTH_NAME, CT_COLLATION_NAME, CT_DATATYPE_NAME, CT_DOMAIN_NAME, CTV_ATTRIBUTE_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, and column::type.
Referenced by catcls_vclass_install().
|
static |
Definition at line 4407 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, AU_USER_CLASS_NAME, CT_ATTRIBUTE_NAME, CT_CLASS_NAME, CT_CLASSAUTH_NAME, CT_DATATYPE_NAME, CT_DOMAIN_NAME, CTV_ATTR_SD_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, and column::type.
Referenced by catcls_vclass_install().
|
static |
Definition at line 4950 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, AU_USER_CLASS_NAME, CT_CLASSAUTH_NAME, CTV_AUTH_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, and column::type.
Referenced by catcls_vclass_install().
|
static |
Definition at line 4098 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, AU_USER_CLASS_NAME, CT_CLASS_NAME, CT_CLASSAUTH_NAME, CT_COLLATION_NAME, CT_PARTITION_NAME, CTV_CLASS_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, and column::type.
Referenced by catcls_vclass_install().
|
static |
Definition at line 5389 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, CT_CHARSET_NAME, CT_COLLATION_NAME, CT_DBCHARSET_CHAR_SIZE, CT_DBCHARSET_CHARSET_ID, CT_DBCHARSET_CHARSET_NAME, CT_DBCHARSET_DEFAULT_COLLATION, CTV_DB_CHARSET_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, and column::type.
Referenced by catcls_vclass_install().
|
static |
Definition at line 5318 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, CT_CHARSET_NAME, CT_COLLATION_NAME, CTV_DB_COLLATION_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, and column::type.
Referenced by catcls_vclass_install().
|
static |
Definition at line 4789 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, AU_USER_CLASS_NAME, CT_CLASSAUTH_NAME, CT_INDEX_NAME, CTV_INDEX_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, and column::type.
Referenced by catcls_vclass_install().
|
static |
Definition at line 4875 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, AU_USER_CLASS_NAME, CT_CLASSAUTH_NAME, CT_INDEXKEY_NAME, CTV_INDEXKEY_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, and column::type.
Referenced by catcls_vclass_install().
|
static |
Definition at line 4485 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, AU_USER_CLASS_NAME, CT_CLASSAUTH_NAME, CT_METHOD_NAME, CT_METHSIG_NAME, CTV_METHOD_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, and column::type.
Referenced by catcls_vclass_install().
|
static |
Definition at line 4559 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, AU_USER_CLASS_NAME, CT_CLASSAUTH_NAME, CT_DATATYPE_NAME, CT_DOMAIN_NAME, CT_METHARG_NAME, CT_METHSIG_NAME, CTV_METHARG_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, and column::type.
Referenced by catcls_vclass_install().
|
static |
Definition at line 4641 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, AU_USER_CLASS_NAME, CT_CLASSAUTH_NAME, CT_DATATYPE_NAME, CT_DOMAIN_NAME, CT_METHARG_NAME, CT_METHSIG_NAME, CTV_METHARG_SD_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, and column::type.
Referenced by catcls_vclass_install().
|
static |
Definition at line 4720 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, AU_USER_CLASS_NAME, CT_CLASSAUTH_NAME, CT_METHFILE_NAME, CTV_METHFILE_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, and column::type.
Referenced by catcls_vclass_install().
|
static |
Definition at line 5097 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, AU_USER_CLASS_NAME, CT_CLASS_NAME, CT_CLASSAUTH_NAME, CT_PARTITION_NAME, CTV_PARTITION_NAME, CTV_SUPER_CLASS_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, and column::type.
Referenced by catcls_vclass_install().
|
static |
Definition at line 5181 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, CT_DATATYPE_NAME, CT_STORED_PROC_NAME, CTV_STORED_PROC_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, and column::type.
Referenced by catcls_vclass_install().
|
static |
Definition at line 5250 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, CT_DATATYPE_NAME, CT_STORED_PROC_ARGS_NAME, CTV_STORED_PROC_ARGS_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, and column::type.
Referenced by catcls_vclass_install().
|
static |
Definition at line 4179 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, AU_USER_CLASS_NAME, CT_CLASS_NAME, CT_CLASSAUTH_NAME, CTV_SUPER_CLASS_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, and column::type.
Referenced by catcls_vclass_install().
|
static |
Definition at line 5023 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, AU_USER_CLASS_NAME, CT_CLASS_NAME, CT_CLASSAUTH_NAME, CTV_TRIGGER_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, TR_CLASS_NAME, and column::type.
Referenced by catcls_vclass_install().
|
static |
Definition at line 4245 of file boot_cl.c.
References assert, au_change_owner(), Au_dba_user, au_grant(), Au_public_user, AU_SELECT, AU_USER_CLASS_NAME, CT_CLASS_NAME, CT_CLASSAUTH_NAME, CT_QUERYSPEC_NAME, CTV_VCLASS_NAME, db_add_attribute(), db_add_query_spec(), db_create_vclass(), er_errid(), i, column::name, NO_ERROR, NULL, and column::type.
Referenced by catcls_vclass_install().
void boot_donot_shutdown_client_at_exit | ( | void | ) |
Definition at line 1485 of file boot_cl.c.
References BOOT_IS_CLIENT_RESTARTED, and boot_Process_id.
Referenced by logpb_fatal_error_internal().
char* boot_get_host_name | ( | void | ) |
Definition at line 5725 of file boot_cl.c.
References basename_r(), boot_Client_id_unknown_string, boot_get_server_locales(), boot_Host_name, CUB_MAXHOSTNAMELEN, DB_MAX_IDENTIFIER_LENGTH, free_and_init, boot_client_credential::get_db_name(), clientids::get_program_name(), GETHOSTNAME, lang_check_coll_compat(), lang_check_locale_compat(), NO_ERROR, and NULL.
Referenced by boot_initialize_client(), boot_restart_client(), and db_find_or_create_session().
char* boot_get_server_session_key | ( | void | ) |
Definition at line 5792 of file boot_cl.c.
References boot_server_credential::server_session_key.
Referenced by db_get_server_session_key().
int boot_initialize_client | ( | BOOT_CLIENT_CREDENTIAL * | client_credential, |
BOOT_DB_PATH_INFO * | db_path_info, | ||
bool | db_overwrite, | ||
const char * | file_addmore_vols, | ||
DKNPAGES | npages, | ||
PGLENGTH | db_desired_pagesize, | ||
DKNPAGES | log_npages, | ||
PGLENGTH | db_desired_log_page_size, | ||
const char * | lang_charset | ||
) |
Definition at line 290 of file boot_cl.c.
References area_final(), area_init(), ARG_FILE_LINE, assert, ASSERT_ERROR, au_final(), au_init(), au_install(), au_start(), au_user_name_dup(), boot_client(), boot_client_all_finalize(), boot_Client_id_buffer, boot_Client_id_unknown_string, boot_Client_no_user_string, boot_Db_host_buf, boot_Db_path_buf, BOOT_FORMAT_MAX_LENGTH, boot_get_host_name(), boot_initialize_server(), boot_Is_client_all_final, BOOT_IS_CLIENT_RESTARTED, boot_Lob_path_buf, boot_Log_path_buf, BOOT_NO_OPT_CAP, boot_shutdown_client(), boot_User_volid, boot_Volume_label, catcls_class_install(), catcls_vclass_install(), cfg_free_directory(), cfg_new_db(), clientids::client_type, COMPOSE_FULL_NAME(), CUB_MAXHOSTNAMELEN, DB_CONNECT_ORDER_SEQ, db_find_or_create_session(), boot_server_credential::db_full_name, boot_db_path_info::db_host, boot_client_credential::db_name, boot_db_path_info::db_path, db_private_free_and_init, db_set_page_size(), clientids::db_user, dl_destroy_module(), dl_initiate_module(), ER_BO_CANNOT_ACCESS_MESSAGE_CATALOG, ER_BO_CANT_LOAD_SYSPRM, ER_BO_CWD_FAIL, ER_BO_FULL_DATABASE_NAME_IS_TOO_LONG, ER_BO_UNABLE_TO_FIND_HOSTNAME, ER_BO_UNKNOWN_DATABASE, er_clear(), er_errid(), ER_ERROR_SEVERITY, ER_ES_INVALID_PATH, ER_GENERIC_ERROR, ER_LOC_INIT, er_log_debug, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), er_set_with_oserror(), es_final(), es_get_type(), ES_NONE, ES_OWFS, free_and_init, boot_client_credential::get_db_name(), clientids::get_db_user(), clientids::get_program_name(), GETHOSTNAME, getuserid(), clientids::host_name, boot_server_credential::host_name, intl_identifier_upper(), intl_identifier_upper_string_size(), L_cuserid, lang_final(), lang_init(), lang_set_charset_lang(), boot_db_path_info::lob_path, LOB_PATH_DEFAULT_PREFIX, locator_free_areas(), locator_initialize_areas(), boot_db_path_info::log_path, clientids::login_name, MAX_NTRANS, MSGCAT_CATALOG_CUBRID, MSGCAT_GENERAL_DATABASE_INIT, msgcat_init(), msgcat_message(), MSGCAT_SET_GENERAL, NO_ERROR, NULL, NULL_TRAN_INDEX, OID_INIT_TEMPID, oid_set_root(), PATH_SEPARATOR, perfmon_finalize(), perfmon_initialize(), prm_get_integer_value(), PRM_ID_LK_TIMEOUT_SECS, PRM_ID_LOG_ISOLATION_LEVEL, rel_name(), boot_server_credential::server_session_key, SERVER_SESSION_KEY_SIZE, set_final(), showstmt_metadata_final(), sm_create_root(), sm_final(), sm_mark_system_classes(), strlen, strncpy_bufsize, sysprm_final(), sysprm_load_and_init_client(), tm_Tran_index, tp_final(), tp_init(), tr_final(), tr_init(), tr_install(), tran_commit(), tran_free_savepoint_list(), tsc_init(), tz_unload(), ws_final(), and ws_init().
Referenced by db_init().
int boot_restart_client | ( | BOOT_CLIENT_CREDENTIAL * | client_credential | ) |
Definition at line 738 of file boot_cl.c.
References area_final(), area_init(), ARG_FILE_LINE, assert, ASSERT_ERROR, assert_release, au_final(), au_has_user_name(), au_init(), AU_PUBLIC_USER_NAME, au_start(), au_user_name(), BOOT_ADMIN_CLIENT_TYPE, BOOT_BROKER_AND_DEFAULT_CLIENT_TYPE, BOOT_CHECK_HA_DELAY_CAP, boot_client(), boot_client_all_finalize(), boot_client_find_and_cache_class_oids(), boot_Client_id_buffer, boot_Client_id_unknown_string, BOOT_CSQL_CLIENT_TYPE, boot_get_host_name(), boot_Is_client_all_final, BOOT_IS_CLIENT_RESTARTED, BOOT_IS_PREFERRED_HOSTS_SET, BOOT_LOG_REPLICATOR_TYPE, BOOT_NO_OPT_CAP, BOOT_NORMAL_CLIENT_TYPE, BOOT_READ_ONLY_CLIENT_TYPE, boot_register_client(), BOOT_REPLICA_ONLY_BROKER_CLIENT_TYPE, boot_shutdown_client(), cfg_find_db(), cfg_free_directory(), cfg_free_hosts(), cfg_get_hosts(), cfg_new_db(), clientids::client_type, boot_client_credential::connect_order, css_windows_startup(), boot_server_credential::db_charset, db_clear_host_status(), DB_CLIENT_TYPE_SLAVE_ONLY_BROKER, DB_CONNECT_ORDER_SEQ, db_disable_modification(), db_find_or_create_session(), boot_server_credential::db_full_name, DB_HS_NON_PREFFERED_HOSTS, boot_server_credential::db_lang, boot_client_credential::db_password, db_private_free_and_init, db_set_host_status(), db_set_page_size(), clientids::db_user, boot_server_credential::disk_compatibility, dl_destroy_module(), dl_initiate_module(), ER_BO_CANNOT_ACCESS_MESSAGE_CATALOG, ER_BO_CANT_LOAD_SYSPRM, ER_BO_CONNECTED_TO, ER_BO_UNKNOWN_DATABASE, er_clear(), er_errid(), ER_ERROR_SEVERITY, ER_ES_NO_LOB_PATH, ER_GENERIC_ERROR, er_init(), ER_LOC_INIT, er_log_debug, ER_NET_NO_EXPLICIT_SERVER_HOST, ER_NET_SERVER_HAND_SHAKE, ER_NOT_IN_STANDALONE, ER_NOTIFICATION_SEVERITY, er_set(), ER_TZ_LOAD_ERROR, ER_WARNING_SEVERITY, error(), es_final(), es_init(), boot_client_credential::get_db_name(), boot_client_credential::get_db_password(), clientids::get_db_user(), clientids::get_host_name(), clientids::get_login_name(), clientids::get_program_name(), getuserid(), clientids::host_name, boot_server_credential::host_name, i, jsp_init(), L_cuserid, lang_final(), lang_init(), lang_set_charset(), lang_set_language(), boot_server_credential::lob_path, locator_free_areas(), locator_initialize_areas(), boot_server_credential::log_page_size, clientids::login_name, msgcat_init(), database_info::name, column::name, NO_ERROR, NULL, NULL_TRAN_INDEX, database_info::num_hosts, OID_INIT_TEMPID, oid_set_root(), boot_server_credential::page_size, perfmon_initialize(), pr_Enable_string_compression, boot_client_credential::preferred_hosts, prm_get_bool_value(), prm_get_integer_value(), prm_get_string_value(), PRM_ID_ENABLE_STRING_COMPRESSION, PRM_ID_ER_EXIT_ASK, PRM_ID_ER_LOG_FILE, PRM_ID_LK_TIMEOUT_SECS, PRM_ID_LOG_ISOLATION_LEVEL, PRM_ID_READ_ONLY_MODE, PRM_ID_TCP_PORT_ID, clientids::process_id, rel_disk_compatible(), rel_set_disk_compatible(), boot_server_credential::root_class_hfid, boot_server_credential::root_class_oid, boot_server_credential::server_session_key, SERVER_SESSION_KEY_SIZE, set_final(), showstmt_metadata_final(), showstmt_metadata_init(), sm_final(), sm_init(), sysprm_final(), sysprm_init_intl_param(), sysprm_load_and_init_client(), sysprm_tune_client_parameters(), TM_TRAN_ASYNC_WS, tm_Tran_index, tp_final(), tp_init(), tr_final(), tr_init(), tran_commit(), TRAN_DEFAULT_ISOLATION_LEVEL, tran_free_savepoint_list(), TRAN_LOCK_INFINITE_WAIT, tran_reset_isolation(), tran_reset_wait_times(), tsc_init(), tz_load(), tz_unload(), util_free_string_array(), util_split_string(), ws_final(), ws_free_string(), and ws_init().
Referenced by conn_restart_client(), and db_restart().
void boot_server_die_or_changed | ( | void | ) |
Definition at line 1503 of file boot_cl.c.
References ARG_FILE_LINE, boot_client(), boot_Is_client_all_final, BOOT_IS_CLIENT_RESTARTED, css_terminate(), er_print_callstack(), NULL_TRAN_INDEX, prm_get_bool_value(), PRM_ID_TEST_MODE, TM_TRAN_ISOLATION, TM_TRAN_WAIT_MSECS, and tran_abort_only_client().
Referenced by set_server_error().
void boot_set_server_session_key | ( | const char * | key | ) |
Definition at line 5801 of file boot_cl.c.
References assert, basename_r(), boot_get_server_timezone_checksum(), check_timezone_compat(), DB_MAX_IDENTIFIER_LENGTH, boot_client_credential::get_db_name(), clientids::get_program_name(), NO_ERROR, NULL, boot_server_credential::server_session_key, SERVER_SESSION_KEY_SIZE, TZ_CHECKSUM_SIZE, and tz_get_data().
Referenced by db_set_server_session_key().
int boot_shutdown_client | ( | bool | is_er_final | ) |
Definition at line 1396 of file boot_cl.c.
References boot_client_all_finalize(), BOOT_IS_CLIENT_RESTARTED, boot_unregister_client(), css_windows_shutdown(), jsp_close_connection(), net_client_final(), NO_ERROR, prm_get_bool_value(), PRM_ID_COMMIT_ON_SHUTDOWN, tm_Tran_index, tran_abort(), tran_commit(), tran_is_active_and_has_updated(), and tran_wait_server_active_trans().
Referenced by boot_initialize_client(), boot_restart_client(), boot_shutdown_client_at_exit(), ci_conn_close_impl(), and db_shutdown().
|
static |
Definition at line 1458 of file boot_cl.c.
References BOOT_IS_CLIENT_RESTARTED, boot_Process_id, boot_shutdown_client(), er_init(), er_is_initialized(), ER_NEVER_EXIT, and NULL.
Referenced by boot_client().
|
static |
Definition at line 4022 of file boot_cl.c.
References assert, AU_DISABLE, AU_ENABLE, boot_define_attribute(), boot_define_charsets(), boot_define_class(), boot_define_class_authorization(), boot_define_collations(), boot_define_data_type(), boot_define_domain(), boot_define_dual(), boot_define_ha_apply_info(), boot_define_index(), boot_define_index_key(), boot_define_meth_argument(), boot_define_meth_file(), boot_define_meth_sig(), boot_define_method(), boot_define_partition(), boot_define_query_spec(), boot_define_serial(), boot_define_stored_procedure(), boot_define_stored_procedure_arguments(), CT_ATTRIBUTE_NAME, CT_CHARSET_NAME, CT_CLASS_NAME, CT_CLASSAUTH_NAME, CT_COLLATION_NAME, CT_DATATYPE_NAME, CT_DOMAIN_NAME, CT_DUAL_NAME, CT_HA_APPLY_INFO_NAME, CT_INDEX_NAME, CT_INDEXKEY_NAME, CT_METHARG_NAME, CT_METHFILE_NAME, CT_METHOD_NAME, CT_METHSIG_NAME, CT_PARTITION_NAME, CT_QUERYSPEC_NAME, CT_SERIAL_NAME, CT_STORED_PROC_ARGS_NAME, CT_STORED_PROC_NAME, db_create_class(), er_errid(), i, column::name, NO_ERROR, NULL, and sm_mark_system_class().
Referenced by boot_initialize_client(), and catcls_vclass_install().
|
static |
Definition at line 5453 of file boot_cl.c.
References au_add_method_check_authorization(), AU_DISABLE, AU_ENABLE, au_force_write_new_auth(), Au_public_user, AU_SELECT, boot_define_view_attribute(), boot_define_view_attribute_set_domain(), boot_define_view_authorization(), boot_define_view_class(), boot_define_view_db_charset(), boot_define_view_db_collation(), boot_define_view_index(), boot_define_view_index_key(), boot_define_view_method(), boot_define_view_method_argument(), boot_define_view_method_argument_set_domain(), boot_define_view_method_file(), boot_define_view_partition(), boot_define_view_stored_procedure(), boot_define_view_stored_procedure_arguments(), boot_define_view_super_class(), boot_define_view_trigger(), boot_define_view_vclass(), boot_get_lob_path(), catcls_class_install(), catcls_compile_catalog_classes(), catcls_Enable, CT_ATTRIBUTE_NAME, CT_CLASS_NAME, CT_CLASSAUTH_NAME, CT_COLLATION_NAME, CT_DATATYPE_NAME, CT_DOMAIN_NAME, CT_INDEX_NAME, CT_INDEXKEY_NAME, CT_METHARG_NAME, CT_METHFILE_NAME, CT_METHOD_NAME, CT_METHSIG_NAME, CT_PARTITION_NAME, CT_QUERYSPEC_NAME, CT_STORED_PROC_ARGS_NAME, CT_STORED_PROC_NAME, CTV_ATTR_SD_NAME, CTV_ATTRIBUTE_NAME, CTV_AUTH_NAME, CTV_CLASS_NAME, CTV_INDEX_NAME, CTV_INDEXKEY_NAME, CTV_METHARG_NAME, CTV_METHARG_SD_NAME, CTV_METHFILE_NAME, CTV_METHOD_NAME, CTV_PARTITION_NAME, CTV_STORED_PROC_ARGS_NAME, CTV_STORED_PROC_NAME, CTV_SUPER_CLASS_NAME, CTV_TRIGGER_NAME, CTV_VCLASS_NAME, db_drop_class(), db_drop_class_method(), db_is_vclass(), db_revoke(), dbname, ER_OBJ_INVALID_ARGUMENTS, boot_server_credential::ha_server_state, i, boot_server_credential::lob_path, locator_find_class(), column::name, NO_ERROR, NULL, sm_force_write_all_classes(), tf_compile_meta_classes(), and tf_Metaclass_class.
Referenced by boot_initialize_client().
|
static |
Definition at line 146 of file boot_cl.c.
Referenced by boot_initialize_client(), and boot_restart_client().
|
static |
Definition at line 144 of file boot_cl.c.
Referenced by boot_get_host_name(), boot_initialize_client(), and boot_restart_client().
|
static |
Definition at line 143 of file boot_cl.c.
Referenced by boot_initialize_client().
|
static |
Definition at line 150 of file boot_cl.c.
Referenced by boot_initialize_client().
|
static |
Definition at line 147 of file boot_cl.c.
Referenced by boot_initialize_client().
char boot_Host_name[CUB_MAXHOSTNAMELEN] = "" |
Definition at line 158 of file boot_cl.c.
Referenced by boot_get_host_name(), boot_make_session_server_key(), boot_restart_server(), check_client_capabilities(), check_server_capabilities(), css_change_ha_server_state(), logtb_collect_local_clients(), logtb_count_not_allowed_clients_in_maintenance_mode(), net_client_ping_server_with_handshake(), server_ping_with_handshake(), xboot_register_client(), and xtran_lock_rep_read().
|
static |
Definition at line 161 of file boot_cl.c.
Referenced by boot_client_all_finalize(), boot_initialize_client(), boot_restart_client(), and boot_server_die_or_changed().
|
static |
Definition at line 149 of file boot_cl.c.
Referenced by boot_initialize_client().
|
static |
Definition at line 148 of file boot_cl.c.
Referenced by boot_initialize_client().
|
static |
Definition at line 163 of file boot_cl.c.
Referenced by boot_client(), boot_donot_shutdown_client_at_exit(), and boot_shutdown_client_at_exit().
|
static |
|
static |
Definition at line 162 of file boot_cl.c.
Referenced by boot_client().
VOLID boot_User_volid = 0 |
Definition at line 153 of file boot_cl.c.
Referenced by allocate_index(), boot_initialize_client(), and classobj_make_class().
|
static |
Definition at line 160 of file boot_cl.c.
Referenced by boot_initialize_client().