|
drizzle
C++ MySQL-protocol-compatible database server
|
Go to the source code of this file.
Macros | |
| #define | srv0start_h |
| #define | SRV_LOG_SPACE_FIRST_ID 0xFFFFFFF0UL |
Enumerations | |
| enum | srv_shutdown_state { SRV_SHUTDOWN_NONE = 0 , SRV_SHUTDOWN_CLEANUP , SRV_SHUTDOWN_LAST_PHASE , SRV_SHUTDOWN_EXIT_THREADS } |
Functions | |
| UNIV_INTERN void | srv_normalize_path_for_win (char *str) |
| UNIV_INTERN ibool | srv_parse_data_file_paths_and_sizes (char *str) |
| UNIV_INTERN ibool | srv_parse_log_group_home_dirs (char *str) |
| UNIV_INTERN void | srv_free_paths_and_sizes (void) |
| UNIV_INTERN char * | srv_add_path_separator_if_needed (char *str) |
| UNIV_INTERN int | innobase_start_or_create_for_mysql (void) |
| UNIV_INTERN int | innobase_shutdown_for_mysql (void) |
Variables | |
| ib_uint64_t | srv_shutdown_lsn |
| ib_uint64_t | srv_start_lsn |
| ibool | srv_is_being_started |
| ibool | srv_was_started |
| ibool | srv_startup_is_before_trx_rollback_phase |
| ibool | srv_start_raw_disk_in_use |
| enum srv_shutdown_state | srv_shutdown_state |
| #define srv0start_h |
Definition at line 28 of file srv0start.h.
| #define SRV_LOG_SPACE_FIRST_ID 0xFFFFFFF0UL |
Log 'spaces' have id's >= this
Definition at line 129 of file srv0start.h.
| enum srv_shutdown_state |
Shutdown state
| Enumerator | |
|---|---|
| SRV_SHUTDOWN_NONE | Database running normally |
| SRV_SHUTDOWN_CLEANUP | Cleaning up in logs_empty_and_mark_files_at_shutdown() |
| SRV_SHUTDOWN_LAST_PHASE | Last phase after ensuring that the buffer pool can be freed: flush all file spaces and close all files |
| SRV_SHUTDOWN_EXIT_THREADS | Exit all threads |
Definition at line 113 of file srv0start.h.
| UNIV_INTERN int innobase_shutdown_for_mysql | ( | void | ) |
Shuts down the Innobase database.
Shuts down the InnoDB database.
Definition at line 1878 of file srv0start.cc.
| UNIV_INTERN int innobase_start_or_create_for_mysql | ( | void | ) |
Starts Innobase and creates a new database if database files are not found and the user wants.
Definition at line 971 of file srv0start.cc.
| UNIV_INTERN char * srv_add_path_separator_if_needed | ( | char * | str | ) |
Adds a slash or a backslash to the end of a string if it is missing and the string is not empty.
| UNIV_INTERN void srv_free_paths_and_sizes | ( | void | ) |
Frees the memory allocated by srv_parse_data_file_paths_and_sizes() and srv_parse_log_group_home_dirs().
Definition at line 450 of file srv0start.cc.
| UNIV_INTERN void srv_normalize_path_for_win | ( | char * | str | ) |
Normalizes a directory path for Windows: converts slashes to backslashes. in/out: null-terminated character string
Normalizes a directory path for Windows: converts slashes to backslashes.
| str | in/out: null-terminated character string |
Definition at line 513 of file srv0start.cc.
| UNIV_INTERN ibool srv_parse_data_file_paths_and_sizes | ( | char * | str | ) |
Reads the data files and their sizes from a character string given in the .cnf file.
Reads the data files and their sizes from a character string given in the .cnf file.
| str | in/out: the data file path string |
Definition at line 195 of file srv0start.cc.
| UNIV_INTERN ibool srv_parse_log_group_home_dirs | ( | char * | str | ) |
Reads log group home directories from a character string given in the .cnf file.
Reads log group home directories from a character string given in the .cnf file.
| str | in/out: character string |
Definition at line 379 of file srv0start.cc.
|
extern |
TRUE if the server is being started
Definition at line 116 of file srv0start.cc.
|
extern |
Log sequence number at shutdown
Definition at line 101 of file srv0start.cc.
|
extern |
At a shutdown this value climbs from SRV_SHUTDOWN_NONE to SRV_SHUTDOWN_CLEANUP and then to SRV_SHUTDOWN_LAST_PHASE, and so on
Definition at line 124 of file srv0start.cc.
|
extern |
Log sequence number immediately after startup
Definition at line 99 of file srv0start.cc.
|
extern |
TRUE if a raw partition is in use
Definition at line 110 of file srv0start.cc.
|
extern |
TRUE if the server is being started, before rolling back any incomplete transactions
Definition at line 114 of file srv0start.cc.
|
extern |
TRUE if the server was successfully started
Definition at line 118 of file srv0start.cc.