| MySQL 5.6.14 Source Code Document
    | 


Go to the source code of this file.
| Macros | |
| #define | SRV_PATH_SEPARATOR '/' | 
| #define | SRV_LOG_SPACE_FIRST_ID 0xFFFFFFF0UL | 
| Enumerations | |
| enum | srv_shutdown_state { SRV_SHUTDOWN_NONE = 0, SRV_SHUTDOWN_CLEANUP, SRV_SHUTDOWN_FLUSH_PHASE, 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 void | srv_free_paths_and_sizes (void) | 
| UNIV_INTERN char * | srv_add_path_separator_if_needed (char *str) | 
| UNIV_INTERN dberr_t | innobase_start_or_create_for_mysql (void) | 
| UNIV_INTERN dberr_t | innobase_shutdown_for_mysql (void) | 
| UNIV_INTERN void | srv_shutdown_table_bg_threads (void) | 
| UNIV_INTERN ulint | srv_path_copy (char *dest, ulint dest_len, const char *basedir, const char *table_name) __attribute__((nonnull | 
| UNIV_INTERN void | srv_get_meta_data_filename (dict_table_t *table, char *filename, ulint max_len) __attribute__((nonnull)) | 
| Variables | |
| UNIV_INTERN ulint | warn_unused_result | 
| lsn_t | srv_shutdown_lsn | 
| lsn_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 SRV_LOG_SPACE_FIRST_ID 0xFFFFFFF0UL | 
Log 'spaces' have id's >= this
Definition at line 165 of file srv0start.h.
| enum srv_shutdown_state | 
Shutdown state
| SRV_SHUTDOWN_NONE | Database running normally | 
| SRV_SHUTDOWN_CLEANUP | Cleaning up in logs_empty_and_mark_files_at_shutdown() | 
| SRV_SHUTDOWN_FLUSH_PHASE | At this phase the master and the purge threads must have completed their work. Once we enter this phase the page_cleaner can clean up the buffer pool and exit | 
| 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 144 of file srv0start.h.
| UNIV_INTERN dberr_t innobase_shutdown_for_mysql | ( | void | ) | 
Shuts down the Innobase database.
| UNIV_INTERN dberr_t innobase_start_or_create_for_mysql | ( | void | ) | 
Starts Innobase and creates a new database if database files are not found and the user wants.
| 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 441 of file srv0start.cc.
| UNIV_INTERN void srv_get_meta_data_filename | ( | dict_table_t * | table, | 
| char * | filename, | ||
| ulint | max_len | ||
| ) | 
Get the meta-data filename from the table name.
| table | in: table | 
| filename | out: filename | 
| max_len | in: filename max length | 
| 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

| 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 254 of file srv0start.cc.
| UNIV_INTERN ulint srv_path_copy | ( | char * | dest, | 
| ulint | dest_len, | ||
| const char * | basedir, | ||
| const char * | table_name | ||
| ) | 
Copy the file path component of the physical file to parameter. It will copy up to and including the terminating path separator.
| dest | out: destination buffer | 
| dest_len | in: max bytes to copy | 
| basedir | in: base directory | 
| table_name | in: source table name | 
| ibool srv_is_being_started | 
TRUE if the server is being started
Definition at line 113 of file srv0start.cc.
| lsn_t srv_shutdown_lsn | 
Log sequence number at shutdown
Definition at line 98 of file srv0start.cc.
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 121 of file srv0start.cc.
| lsn_t srv_start_lsn | 
Log sequence number immediately after startup
Definition at line 96 of file srv0start.cc.
| ibool srv_start_raw_disk_in_use | 
TRUE if a raw partition is in use
Definition at line 107 of file srv0start.cc.
| ibool srv_startup_is_before_trx_rollback_phase | 
TRUE if the server is being started, before rolling back any
incomplete transactions
Definition at line 111 of file srv0start.cc.
| ibool srv_was_started | 
TRUE if the server was successfully started
Definition at line 115 of file srv0start.cc.