drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
srv0start.h File Reference
#include "univ.i"
#include "ut0byte.h"
Include dependency graph for srv0start.h:
This graph shows which files directly or indirectly include this file:

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

Detailed Description

Starts the Innobase database server

Created 10/10/1995 Heikki Tuuri

Definition in file srv0start.h.

Macro Definition Documentation

◆ srv0start_h

#define srv0start_h

Definition at line 28 of file srv0start.h.

◆ SRV_LOG_SPACE_FIRST_ID

#define SRV_LOG_SPACE_FIRST_ID   0xFFFFFFF0UL

Log 'spaces' have id's >= this

Definition at line 129 of file srv0start.h.

Enumeration Type Documentation

◆ 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.

Function Documentation

◆ innobase_shutdown_for_mysql()

UNIV_INTERN int innobase_shutdown_for_mysql ( void )

Shuts down the Innobase database.

Returns
DB_SUCCESS or error code

Shuts down the InnoDB database.

Returns
DB_SUCCESS or error code

Definition at line 1878 of file srv0start.cc.

◆ innobase_start_or_create_for_mysql()

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.

Returns
DB_SUCCESS or error code

Definition at line 971 of file srv0start.cc.

◆ srv_add_path_separator_if_needed()

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.

Returns
string which has the separator if the string is not empty in: null-terminated character string

◆ srv_free_paths_and_sizes()

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.

◆ srv_normalize_path_for_win()

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.

Parameters
strin/out: null-terminated character string

Definition at line 513 of file srv0start.cc.

◆ srv_parse_data_file_paths_and_sizes()

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.

Returns
TRUE if ok, FALSE on parse error in/out: the data file path string

Reads the data files and their sizes from a character string given in the .cnf file.

Returns
TRUE if ok, FALSE on parse error
Parameters
strin/out: the data file path string

Definition at line 195 of file srv0start.cc.

◆ srv_parse_log_group_home_dirs()

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.

Returns
TRUE if ok, FALSE on parse error in/out: character string

Reads log group home directories from a character string given in the .cnf file.

Returns
TRUE if ok, FALSE on parse error
Parameters
strin/out: character string

Definition at line 379 of file srv0start.cc.

Variable Documentation

◆ srv_is_being_started

ibool srv_is_being_started
extern

TRUE if the server is being started

Definition at line 116 of file srv0start.cc.

◆ srv_shutdown_lsn

ib_uint64_t srv_shutdown_lsn
extern

Log sequence number at shutdown

Definition at line 101 of file srv0start.cc.

◆ srv_shutdown_state

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.

◆ srv_start_lsn

ib_uint64_t srv_start_lsn
extern

Log sequence number immediately after startup

Definition at line 99 of file srv0start.cc.

◆ srv_start_raw_disk_in_use

ibool srv_start_raw_disk_in_use
extern

TRUE if a raw partition is in use

Definition at line 110 of file srv0start.cc.

◆ srv_startup_is_before_trx_rollback_phase

ibool srv_startup_is_before_trx_rollback_phase
extern

TRUE if the server is being started, before rolling back any incomplete transactions

Definition at line 114 of file srv0start.cc.

◆ srv_was_started

ibool srv_was_started
extern

TRUE if the server was successfully started

Definition at line 118 of file srv0start.cc.