46 #if defined (SERVER_MODE) 47 #define AUTO_ADD_VOL_EXPAND_NPAGES (20) 49 typedef struct auto_addvol_job AUTO_ADDVOL_JOB;
50 struct auto_addvol_job
58 #define BOOT_AUTO_ADDVOL_JOB_INITIALIZER \ 59 { PTHREAD_MUTEX_INITIALIZER, \ 60 PTHREAD_COND_INITIALIZER, \ 61 {NULL, NULL, NULL, 0, 0, 0, DISK_PERMVOL_DATA_PURPOSE, false},\ 84 #define BO_IS_SERVER_RESTARTED() \ 85 (boot_Server_status == BOOT_SERVER_UP \ 86 || boot_Server_status == BOOT_SERVER_MAINTENANCE) 107 char keys_file_path[PATH_MAX];
110 #if defined(SERVER_MODE) 112 extern void boot_donot_shutdown_server_at_exit (
void);
113 extern void xboot_notify_unregister_client (
THREAD_ENTRY * thread_p,
int tran_index);
118 #if !defined(CS_MODE) 133 const char *new_db_path,
const char *new_log_path,
const char *new_lob_path,
134 const char *new_db_server_host,
const char *new_volext_path,
135 const char *fileof_vols_and_copypaths,
bool new_db_overwrite);
137 const char *new_db_path,
const char *new_log_path,
const char *new_db_server_host,
138 const char *new_volext_path,
const char *fileof_vols_and_renamepaths,
139 bool new_db_overwrite,
bool extern_rename,
bool force_delete);
146 int instance_lock_timeout,
int class_lock_timeout,
bool delete_old_repr,
148 int *
failed_objects,
int *modified_objects,
int *big_objects,
int *initial_last_repr_id);
157 const char *given_name,
char *fullname_newvol_out,
158 VOLID * volid_newvol_out);
int xboot_restart_from_backup(THREAD_ENTRY *thread_p, int print_restart, const char *db_name, BO_RESTART_ARG *r_args)
const char * verbose_file
const char * boot_client_type_to_string(BOOT_CLIENT_TYPE type)
VOLID boot_find_next_permanent_volid(THREAD_ENTRY *thread_p)
const char * boot_db_name(void)
boot_server_shutdown_mode
enum db_client_type BOOT_CLIENT_TYPE
bool boot_set_skip_check_ct_classes(bool val)
int boot_reset_db_parm(THREAD_ENTRY *thread_p)
const char * boot_get_lob_path(void)
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)
void boot_server_all_finalize(THREAD_ENTRY *thread_p, ER_FINAL_CODE is_er_final, 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)
int boot_heap_compact_pages(THREAD_ENTRY *thread_p, OID *class_oid)
int boot_dbparm_save_volume(THREAD_ENTRY *thread_p, DB_VOLTYPE voltype, VOLID volid)
enum boot_server_status BOOT_SERVER_STATUS
bool is_restore_from_backup
BOOT_SERVER_STATUS boot_Server_status
int boot_compact_stop(THREAD_ENTRY *thread_p)
static int failed_objects
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)
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)
enum boot_server_shutdown_mode BOOT_SERVER_SHUTDOWN_MODE
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)
int boot_reset_mk_after_restart_from_backup(THREAD_ENTRY *thread_p, BO_RESTART_ARG *r_args)
int xboot_delete(const char *db_name, bool force_delete, BOOT_SERVER_SHUTDOWN_MODE shutdown_common_modules)
bool xboot_shutdown_server(REFPTR(THREAD_ENTRY, thread_p), ER_FINAL_CODE is_er_final)
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)
const char * boot_db_full_name(void)
int boot_compact_start(THREAD_ENTRY *thread_p)
enum er_final_code ER_FINAL_CODE
int boot_find_root_heap(HFID *root_hfid_p)
bool boot_can_compact(THREAD_ENTRY *thread_p)