Skip to content

File boot_sr.h

FileList > cubrid > src > transaction > boot_sr.h

Go to the source code of this file

  • #include "config.h"
  • #include <time.h>
  • #include "boot.h"
  • #include "error_manager.h"
  • #include "storage_common.h"
  • #include "oid.h"
  • #include "disk_manager.h"
  • #include "log_comm.h"
  • #include "log_lsa.hpp"
  • #include "file_io.h"
  • #include "tde.h"

Classes

Type Name
struct auto_addvol_job
struct bo_restart_arg
struct check_args

Public Types

Type Name
typedef struct auto_addvol_job AUTO_ADDVOL_JOB
typedef enum boot_server_shutdown_mode BOOT_SERVER_SHUTDOWN_MODE
typedef enum boot_server_status BOOT_SERVER_STATUS
typedef struct bo_restart_arg BO_RESTART_ARG
typedef struct check_args CHECK_ARGS
enum boot_server_shutdown_mode
enum boot_server_status

Public Attributes

Type Name
bool boot_Enabled_flush_daemons
BOOT_SERVER_STATUS boot_Server_status

Public Functions

Type Name
bool boot_can_compact (THREAD_ENTRY * thread_p)
const char * boot_client_type_to_string (BOOT_CLIENT_TYPE type)
int boot_compact_db (THREAD_ENTRY * thread_p, OID * class_oids, int n_classes, int space_to_process, int instance_lock_timeout, int class_lock_timeout, bool delete_old_repr, OID * last_processed_class_oid, OID * last_processed_oid, int * total_objects, int * failed_objects, int * modified_objects, int * big_objects, int * initial_last_repr_id)
int boot_compact_start (THREAD_ENTRY * thread_p)
int boot_compact_stop (THREAD_ENTRY * thread_p)
const char * boot_db_full_name (void)
const char * boot_db_name (void)
int boot_dbparm_save_volume (THREAD_ENTRY * thread_p, DB_VOLTYPE voltype, VOLID volid)
void boot_donot_shutdown_server_at_exit (void)
VOLID boot_find_next_permanent_volid (THREAD_ENTRY * thread_p)
int boot_find_root_heap (HFID * root_hfid_p)
int boot_get_new_volume_name_and_id (THREAD_ENTRY * thread_p, DB_VOLTYPE voltype, const char * given_path, const char * given_name, char * fullname_newvol_out, VOLID * volid_newvol_out)
int boot_heap_compact_pages (THREAD_ENTRY * thread_p, OID * class_oid)
int boot_reset_db_parm (THREAD_ENTRY * thread_p)
int boot_reset_mk_after_restart_from_backup (THREAD_ENTRY * thread_p, BO_RESTART_ARG * r_args)
int boot_restart_server (THREAD_ENTRY * thread_p, bool print_restart, const char * db_name, bool from_backup, CHECK_ARGS * check_coll_and_timezone, BO_RESTART_ARG * r_args, bool skip_vacuum)
void boot_server_all_finalize (THREAD_ENTRY * thread_p, ER_FINAL_CODE is_er_final, BOOT_SERVER_SHUTDOWN_MODE shutdown_common_modules)
void boot_server_status (BOOT_SERVER_STATUS status)
bool boot_set_skip_check_ct_classes (bool val)
int xboot_copy (REFPTR(THREAD_ENTRY, thread_p), const char * from_dbname, const char * new_db_name, const char * new_db_path, const char * new_log_path, const char * new_lob_path, const char * new_db_server_host, const char * new_volext_path, const char * fileof_vols_and_copypaths, bool new_db_overwrite)
int xboot_delete (const char * db_name, bool force_delete, BOOT_SERVER_SHUTDOWN_MODE shutdown_common_modules)
int xboot_emergency_patch (const char * db_name, bool recreate_log, DKNPAGES log_npages, const char * db_locale, FILE * out_fp)
void xboot_notify_unregister_client (THREAD_ENTRY * thread_p, int tran_index)
int xboot_restart_from_backup (THREAD_ENTRY * thread_p, int print_restart, const char * db_name, BO_RESTART_ARG * r_args)
bool xboot_shutdown_server (REFPTR(THREAD_ENTRY, thread_p), ER_FINAL_CODE is_er_final)
int xboot_soft_rename (THREAD_ENTRY * thread_p, const char * old_db_name, const char * new_db_name, const char * new_db_path, const char * new_log_path, const char * new_db_server_host, const char * new_volext_path, const char * fileof_vols_and_renamepaths, bool new_db_overwrite, bool extern_rename, bool force_delete)

Macros

Type Name
define AUTO_ADD_VOL_EXPAND_NPAGES (20)
define BOOT_AUTO_ADDVOL_JOB_INITIALIZER /* multi line expression */
define BO_DISABLE_FLUSH_DAEMONS () /* multi line expression */
define BO_ENABLE_FLUSH_DAEMONS () /* multi line expression */
define BO_IS_FLUSH_DAEMON_AVAILABLE () ([**boot\_Enabled\_flush\_daemons**](boot__sr_8c.md#variable-boot_enabled_flush_daemons) == [**true**](broker__monitor_8c.md#function-timeout))
define BO_IS_SERVER_RESTARTED () ([**boot\_Server\_status**](boot__sr_8c.md#variable-boot_server_status) != BOOT\_SERVER\_DOWN)

Public Types Documentation

typedef AUTO_ADDVOL_JOB

typedef struct auto_addvol_job AUTO_ADDVOL_JOB;

typedef BOOT_SERVER_SHUTDOWN_MODE

typedef enum boot_server_shutdown_mode BOOT_SERVER_SHUTDOWN_MODE;

typedef BOOT_SERVER_STATUS

typedef enum boot_server_status BOOT_SERVER_STATUS;

typedef BO_RESTART_ARG

typedef struct bo_restart_arg BO_RESTART_ARG;

typedef CHECK_ARGS

typedef struct check_args CHECK_ARGS;

enum boot_server_shutdown_mode

enum boot_server_shutdown_mode {
    BOOT_SHUTDOWN_EXCEPT_COMMON_MODULES,
    BOOT_SHUTDOWN_ALL_MODULES
};

enum boot_server_status

enum boot_server_status {
    BOOT_SERVER_UP = 1,
    BOOT_SERVER_DOWN,
    BOOT_SERVER_MAINTENANCE
};

Public Attributes Documentation

variable boot_Enabled_flush_daemons

bool boot_Enabled_flush_daemons;

variable boot_Server_status

BOOT_SERVER_STATUS boot_Server_status;

Public Functions Documentation

function boot_can_compact

bool boot_can_compact (
    THREAD_ENTRY * thread_p
) 

function boot_client_type_to_string

const  char * boot_client_type_to_string (
    BOOT_CLIENT_TYPE type
) 

function boot_compact_db

int boot_compact_db (
    THREAD_ENTRY * thread_p,
    OID * class_oids,
    int n_classes,
    int space_to_process,
    int instance_lock_timeout,
    int class_lock_timeout,
    bool delete_old_repr,
    OID * last_processed_class_oid,
    OID * last_processed_oid,
    int * total_objects,
    int * failed_objects,
    int * modified_objects,
    int * big_objects,
    int * initial_last_repr_id
) 

function boot_compact_start

int boot_compact_start (
    THREAD_ENTRY * thread_p
) 

function boot_compact_stop

int boot_compact_stop (
    THREAD_ENTRY * thread_p
) 

function boot_db_full_name

const  char * boot_db_full_name (
    void
) 

function boot_db_name

const  char * boot_db_name (
    void
) 

function boot_dbparm_save_volume

int boot_dbparm_save_volume (
    THREAD_ENTRY * thread_p,
    DB_VOLTYPE voltype,
    VOLID volid
) 

function boot_donot_shutdown_server_at_exit

void boot_donot_shutdown_server_at_exit (
    void
) 

function boot_find_next_permanent_volid

VOLID boot_find_next_permanent_volid (
    THREAD_ENTRY * thread_p
) 

function boot_find_root_heap

int boot_find_root_heap (
    HFID * root_hfid_p
) 

function boot_get_new_volume_name_and_id

int boot_get_new_volume_name_and_id (
    THREAD_ENTRY * thread_p,
    DB_VOLTYPE voltype,
    const  char * given_path,
    const  char * given_name,
    char * fullname_newvol_out,
    VOLID * volid_newvol_out
) 

function boot_heap_compact_pages

int boot_heap_compact_pages (
    THREAD_ENTRY * thread_p,
    OID * class_oid
) 

function boot_reset_db_parm

int boot_reset_db_parm (
    THREAD_ENTRY * thread_p
) 

function boot_reset_mk_after_restart_from_backup

int boot_reset_mk_after_restart_from_backup (
    THREAD_ENTRY * thread_p,
    BO_RESTART_ARG * r_args
) 

function boot_restart_server

int boot_restart_server (
    THREAD_ENTRY * thread_p,
    bool print_restart,
    const  char * db_name,
    bool from_backup,
    CHECK_ARGS * check_coll_and_timezone,
    BO_RESTART_ARG * r_args,
    bool skip_vacuum
) 

function boot_server_all_finalize

void boot_server_all_finalize (
    THREAD_ENTRY * thread_p,
    ER_FINAL_CODE is_er_final,
    BOOT_SERVER_SHUTDOWN_MODE shutdown_common_modules
) 

function boot_server_status

void boot_server_status (
    BOOT_SERVER_STATUS status
) 

function boot_set_skip_check_ct_classes

bool boot_set_skip_check_ct_classes (
    bool val
) 

function xboot_copy

int xboot_copy (
    REFPTR ( THREAD_ENTRY , thread_p),
    const  char * from_dbname,
    const  char * new_db_name,
    const  char * new_db_path,
    const  char * new_log_path,
    const  char * new_lob_path,
    const  char * new_db_server_host,
    const  char * new_volext_path,
    const  char * fileof_vols_and_copypaths,
    bool new_db_overwrite
) 

function xboot_delete

int xboot_delete (
    const  char * db_name,
    bool force_delete,
    BOOT_SERVER_SHUTDOWN_MODE shutdown_common_modules
) 

function xboot_emergency_patch

int xboot_emergency_patch (
    const  char * db_name,
    bool recreate_log,
    DKNPAGES log_npages,
    const  char * db_locale,
    FILE * out_fp
) 

function xboot_notify_unregister_client

void xboot_notify_unregister_client (
    THREAD_ENTRY * thread_p,
    int tran_index
) 

function xboot_restart_from_backup

int xboot_restart_from_backup (
    THREAD_ENTRY * thread_p,
    int print_restart,
    const  char * db_name,
    BO_RESTART_ARG * r_args
) 

function xboot_shutdown_server

bool xboot_shutdown_server (
    REFPTR ( THREAD_ENTRY , thread_p),
    ER_FINAL_CODE is_er_final
) 

function xboot_soft_rename

int xboot_soft_rename (
    THREAD_ENTRY * thread_p,
    const  char * old_db_name,
    const  char * new_db_name,
    const  char * new_db_path,
    const  char * new_log_path,
    const  char * new_db_server_host,
    const  char * new_volext_path,
    const  char * fileof_vols_and_renamepaths,
    bool new_db_overwrite,
    bool extern_rename,
    bool force_delete
) 

Macro Definition Documentation

define AUTO_ADD_VOL_EXPAND_NPAGES

#define AUTO_ADD_VOL_EXPAND_NPAGES `(20)`

define BOOT_AUTO_ADDVOL_JOB_INITIALIZER

#define BOOT_AUTO_ADDVOL_JOB_INITIALIZER `/* multi line expression */`

define BO_DISABLE_FLUSH_DAEMONS

#define BO_DISABLE_FLUSH_DAEMONS (

) `/* multi line expression */`

define BO_ENABLE_FLUSH_DAEMONS

#define BO_ENABLE_FLUSH_DAEMONS (

) `/* multi line expression */`

define BO_IS_FLUSH_DAEMON_AVAILABLE

#define BO_IS_FLUSH_DAEMON_AVAILABLE (

) `( boot_Enabled_flush_daemons == true )`

define BO_IS_SERVER_RESTARTED

#define BO_IS_SERVER_RESTARTED (

) `( boot_Server_status != BOOT_SERVER_DOWN )`


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