Skip to content

File boot_cl.c

FileList > cubrid > src > transaction > boot_cl.c

Go to the source code of this file

  • #include "config.h"
  • #include <stdio.h>
  • #include <string.h>
  • #include <sys/time.h>
  • #include <unistd.h>
  • #include <netdb.h>
  • #include <arpa/inet.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 "authenticate.h"
  • #include "work_space.h"
  • #include "schema_manager.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 "method_callback.hpp"
  • #include "object_primitive.h"
  • #include "connection_globals.h"
  • #include "host_lookup.h"
  • #include "schema_system_catalog.hpp"
  • #include "sp_catalog.hpp"
  • #include "authenticate_context.hpp"
  • #include <signal.h>
  • #include "network.h"
  • #include "network_interface_cl.h"
  • #include "tcp.h"
  • #include "catalog_class.h"

Public Attributes

Type Name
char boot_Host_connected = ""
char boot_Host_name = ""
char boot_Ip_address = { 0 }
VOLID boot_User_volid = 0

Public Static Attributes

Type Name
char boot_Client_id_buffer
const char * boot_Client_id_unknown_string = "(unknown)"
const char * boot_Client_no_user_string = "(nouser)"
char boot_Db_host_buf
char boot_Db_path_buf
bool boot_Is_client_all_final = [**true**](broker__monitor_8c.md#function-timeout)
char boot_Lob_path_buf
char boot_Log_path_buf
int boot_Process_id = -1
BOOT_SERVER_CREDENTIAL boot_Server_credential = /* multi line expression */
bool boot_Set_client_at_exit = [**false**](broker__monitor_8c.md#function-timeout)
char boot_Volume_label = " "

Public Functions

Type Name
int boot_build_catalog_classes (const char * dbname)
void boot_clear_host_connected (void)
void boot_client_all_finalize (int final_level)
int boot_destroy_catalog_classes (void)
void boot_donot_shutdown_client_at_exit (void)
HA_SERVER_STATE boot_get_ha_server_state (void)
char * boot_get_host_connected (void)
char * boot_get_host_name (void)
char * boot_get_ip (void)
const char * boot_get_lob_path (void)
char * boot_get_server_session_key (void)
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)
int boot_rebuild_catalog_classes (const char * dbname)
int boot_restart_client (BOOT_CLIENT_CREDENTIAL * client_credential)
void boot_server_die_or_changed (void)
void boot_set_server_session_key (const char * key)
int boot_shutdown_client (bool is_er_final)

Public Static Functions

Type Name
int boot_check_locales (BOOT_CLIENT_CREDENTIAL * client_credential)
int boot_check_timezone_checksum (BOOT_CLIENT_CREDENTIAL * client_credential)
int boot_client (int tran_index, int lock_wait, TRAN_ISOLATION tran_isolation)
int boot_client_find_and_cache_class_oids (void)
int boot_client_initialize_css (DB_INFO * db, int client_type, bool check_capabilities, int opt_cap, bool discriminative, int connect_order, bool is_preferred_host)
void boot_shutdown_client_at_exit (void)
int install_system_metadata (void)

Macros

Type Name
define BOOT_CHECK_HA_DELAY_CAP [**NET\_CAP\_HA\_REPL\_DELAY**](network_8h.md#define-net_cap_ha_repl_delay)
define BOOT_FORMAT_MAX_LENGTH 500
define BOOT_NO_OPT_CAP 0

Public Attributes Documentation

variable boot_Host_connected

char boot_Host_connected[CUB_MAXHOSTNAMELEN];

variable boot_Host_name

char boot_Host_name[CUB_MAXHOSTNAMELEN];

variable boot_Ip_address

char boot_Ip_address[16];

variable boot_User_volid

VOLID boot_User_volid;

Public Static Attributes Documentation

variable boot_Client_id_buffer

char boot_Client_id_buffer[L_cuserid+1];

variable boot_Client_id_unknown_string

const char* boot_Client_id_unknown_string;

variable boot_Client_no_user_string

const char* boot_Client_no_user_string;

variable boot_Db_host_buf

char boot_Db_host_buf[CUB_MAXHOSTNAMELEN+1];

variable boot_Db_path_buf

char boot_Db_path_buf[PATH_MAX];

variable boot_Is_client_all_final

bool boot_Is_client_all_final;

variable boot_Lob_path_buf

char boot_Lob_path_buf[PATH_MAX];

variable boot_Log_path_buf

char boot_Log_path_buf[PATH_MAX];

variable boot_Process_id

int boot_Process_id;

variable boot_Server_credential

BOOT_SERVER_CREDENTIAL boot_Server_credential;

variable boot_Set_client_at_exit

bool boot_Set_client_at_exit;

variable boot_Volume_label

char boot_Volume_label[PATH_MAX];

Public Functions Documentation

function boot_build_catalog_classes

int boot_build_catalog_classes (
    const  char * dbname
) 

function boot_clear_host_connected

void boot_clear_host_connected (
    void
) 

function boot_client_all_finalize

void boot_client_all_finalize (
    int final_level
) 

function boot_destroy_catalog_classes

int boot_destroy_catalog_classes (
    void
) 

function boot_donot_shutdown_client_at_exit

void boot_donot_shutdown_client_at_exit (
    void
) 

function boot_get_ha_server_state

HA_SERVER_STATE boot_get_ha_server_state (
    void
) 

function boot_get_host_connected

char * boot_get_host_connected (
    void
) 

function boot_get_host_name

char * boot_get_host_name (
    void
) 

function boot_get_ip

char * boot_get_ip (
    void
) 

function boot_get_lob_path

const  char * boot_get_lob_path (
    void
) 

function boot_get_server_session_key

char * boot_get_server_session_key (
    void
) 

function boot_initialize_client

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
) 

function boot_rebuild_catalog_classes

int boot_rebuild_catalog_classes (
    const  char * dbname
) 

function boot_restart_client

int boot_restart_client (
    BOOT_CLIENT_CREDENTIAL * client_credential
) 

function boot_server_die_or_changed

void boot_server_die_or_changed (
    void
) 

function boot_set_server_session_key

void boot_set_server_session_key (
    const  char * key
) 

function boot_shutdown_client

int boot_shutdown_client (
    bool is_er_final
) 

Public Static Functions Documentation

function boot_check_locales

static int boot_check_locales (
    BOOT_CLIENT_CREDENTIAL * client_credential
) 

function boot_check_timezone_checksum

static int boot_check_timezone_checksum (
    BOOT_CLIENT_CREDENTIAL * client_credential
) 

function boot_client

static int boot_client (
    int tran_index,
    int lock_wait,
    TRAN_ISOLATION tran_isolation
) 

function boot_client_find_and_cache_class_oids

static int boot_client_find_and_cache_class_oids (
    void
) 

function boot_client_initialize_css

static int boot_client_initialize_css (
    DB_INFO * db,
    int client_type,
    bool check_capabilities,
    int opt_cap,
    bool discriminative,
    int connect_order,
    bool is_preferred_host
) 

function boot_shutdown_client_at_exit

static void boot_shutdown_client_at_exit (
    void
) 

function install_system_metadata

static int install_system_metadata (
    void
) 

Macro Definition Documentation

define BOOT_CHECK_HA_DELAY_CAP

#define BOOT_CHECK_HA_DELAY_CAP `NET_CAP_HA_REPL_DELAY`

define BOOT_FORMAT_MAX_LENGTH

#define BOOT_FORMAT_MAX_LENGTH `500`

define BOOT_NO_OPT_CAP

#define BOOT_NO_OPT_CAP `0`


The documentation for this class was generated from the following file cubrid/src/transaction/boot_cl.c