MySQL 5.6.14 Source Code Document
|
#include "ut0mem.h"
#include "mem0mem.h"
#include "data0data.h"
#include "data0type.h"
#include "dict0dict.h"
#include "buf0buf.h"
#include "buf0dump.h"
#include "os0file.h"
#include "os0thread.h"
#include "fil0fil.h"
#include "fsp0fsp.h"
#include "rem0rec.h"
#include "mtr0mtr.h"
#include "log0log.h"
#include "log0recv.h"
#include "page0page.h"
#include "page0cur.h"
#include "trx0trx.h"
#include "trx0sys.h"
#include "btr0btr.h"
#include "btr0cur.h"
#include "ibuf0ibuf.h"
#include "srv0start.h"
#include "srv0srv.h"
#include "trx0rseg.h"
#include "os0proc.h"
#include "sync0sync.h"
#include "buf0flu.h"
#include "buf0rea.h"
#include "dict0boot.h"
#include "dict0load.h"
#include "dict0stats_bg.h"
#include "que0que.h"
#include "usr0sess.h"
#include "lock0lock.h"
#include "trx0roll.h"
#include "trx0purge.h"
#include "pars0pars.h"
#include "btr0sea.h"
#include "rem0cmp.h"
#include "dict0crea.h"
#include "row0ins.h"
#include "row0sel.h"
#include "row0upd.h"
#include "row0row.h"
#include "row0mysql.h"
#include "btr0pcur.h"
#include "os0sync.h"
#include "zlib.h"
#include "ut0crc32.h"
Go to the source code of this file.
Macros | |
#define | SRV_N_PENDING_IOS_PER_THREAD OS_AIO_N_PENDING_IOS_PER_THREAD |
#define | SRV_MAX_N_PENDING_SYNC_IOS 100 |
#define | INIT_LOG_FILE0 (SRV_N_LOG_FILES_MAX + 1) |
#define | RECOVERY_CRASH(x) |
Functions | |
UNIV_INTERN ibool | srv_parse_data_file_paths_and_sizes (char *str) |
UNIV_INTERN void | srv_free_paths_and_sizes (void) |
UNIV_INTERN os_thread_ret_t DECLARE_THREAD() | io_handler_thread (void *arg) |
UNIV_INTERN void | srv_normalize_path_for_win (char *str __attribute__((unused))) |
if (!ret) | |
ib_logf (IB_LOG_LEVEL_INFO,"Setting log file %s size to %lu MB", name,(ulong) srv_log_file_size >>(20-UNIV_PAGE_SIZE_SHIFT)) | |
ut_a (ret) | |
return (DB_SUCCESS) |
Variables | |
UNIV_INTERN lsn_t | srv_start_lsn |
UNIV_INTERN lsn_t | srv_shutdown_lsn |
UNIV_INTERN ibool | srv_start_raw_disk_in_use = FALSE |
UNIV_INTERN ibool | srv_startup_is_before_trx_rollback_phase = FALSE |
UNIV_INTERN ibool | srv_is_being_started = FALSE |
UNIV_INTERN ibool | srv_was_started = FALSE |
UNIV_INTERN enum srv_shutdown_state | srv_shutdown_state = SRV_SHUTDOWN_NONE |
static const char *name ibool | ret |
* | file |
static const char * | name |
#define INIT_LOG_FILE0 (SRV_N_LOG_FILES_MAX + 1) |
Initial number of the first redo log file
Definition at line 555 of file srv0start.cc.
#define RECOVERY_CRASH | ( | x | ) |
Definition at line 560 of file srv0start.cc.
UNIV_INTERN os_thread_ret_t DECLARE_THREAD() io_handler_thread | ( | void * | arg | ) |
I/o-handler thread function.
arg | in: pointer to the number of the segment in the aio array |
Definition at line 458 of file srv0start.cc.
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_normalize_path_for_win | ( | char *str | __attribute__(unused) | ) |
Normalizes a directory path for Windows: converts slashes to backslashes.
__attribute__ | in/out: null-terminated character string |
Definition at line 495 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.
str | in/out: the data file path string |
Definition at line 254 of file srv0start.cc.
* file |
Definition at line 523 of file srv0start.cc.
const char* name |
< out: file handle in: log file name
Definition at line 726 of file srv0start.cc.
ret |
UNIV_INTERN ibool srv_is_being_started = FALSE |
TRUE if the server is being started
Definition at line 113 of file srv0start.cc.
UNIV_INTERN lsn_t srv_shutdown_lsn |
Log sequence number at shutdown
Definition at line 98 of file srv0start.cc.
UNIV_INTERN enum srv_shutdown_state srv_shutdown_state = SRV_SHUTDOWN_NONE |
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.
UNIV_INTERN lsn_t srv_start_lsn |
Log sequence number immediately after startup
Definition at line 96 of file srv0start.cc.
UNIV_INTERN ibool srv_start_raw_disk_in_use = FALSE |
TRUE if a raw partition is in use
Definition at line 107 of file srv0start.cc.
UNIV_INTERN ibool srv_startup_is_before_trx_rollback_phase = FALSE |
TRUE if the server is being started, before rolling back any
incomplete transactions
Definition at line 111 of file srv0start.cc.
UNIV_INTERN ibool srv_was_started = FALSE |
TRUE if the server was successfully started
Definition at line 115 of file srv0start.cc.