InnoDB Plugin
1.0
Main Page
Data Structures
Files
File List
Globals
include
srv0start.h
Go to the documentation of this file.
1
/*****************************************************************************
2
3
Copyright (c) 1995, 2012, Oracle and/or its affiliates. All Rights Reserved.
4
5
This program is free software; you can redistribute it and/or modify it under
6
the terms of the GNU General Public License as published by the Free Software
7
Foundation; version 2 of the License.
8
9
This program is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13
You should have received a copy of the GNU General Public License along with
14
this program; if not, write to the Free Software Foundation, Inc.,
15
51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
16
17
*****************************************************************************/
18
19
/**************************************************/
26
#ifndef srv0start_h
27
#define srv0start_h
28
29
#include "
univ.i
"
30
#include "
log0log.h
"
31
#include "
ut0byte.h
"
32
33
#ifdef __WIN__
34
#define SRV_PATH_SEPARATOR '\\'
35
#else
36
#define SRV_PATH_SEPARATOR '/'
37
#endif
38
39
/*********************************************************************/
41
UNIV_INTERN
42
void
43
srv_normalize_path_for_win
(
44
/*=======================*/
45
char
* str);
46
/*********************************************************************/
50
UNIV_INTERN
51
ibool
52
srv_parse_data_file_paths_and_sizes
(
53
/*================================*/
54
char
* str);
55
/*********************************************************************/
58
UNIV_INTERN
59
void
60
srv_free_paths_and_sizes
(
void
);
61
/*==========================*/
62
/*********************************************************************/
66
UNIV_INTERN
67
char
*
68
srv_add_path_separator_if_needed
(
69
/*=============================*/
70
char
* str);
71
#ifndef UNIV_HOTBACKUP
72
/****************************************************************/
76
UNIV_INTERN
77
dberr_t
78
innobase_start_or_create_for_mysql
(
void
);
79
/*====================================*/
80
/****************************************************************/
83
UNIV_INTERN
84
dberr_t
85
innobase_shutdown_for_mysql
(
void
);
86
87
/********************************************************************
88
Signal all per-table background threads to shutdown, and wait for them to do
89
so. */
90
UNIV_INTERN
91
void
92
srv_shutdown_table_bg_threads(
void
);
93
/*=============================*/
94
95
/*************************************************************/
100
UNIV_INTERN
101
ulint
102
srv_path_copy
(
103
/*==========*/
104
char
* dest,
105
ulint dest_len,
106
const
char
* basedir,
107
const
char
* table_name)
108
__attribute__((nonnull, warn_unused_result));
109
110
/*****************************************************************/
112
UNIV_INTERN
113
void
114
srv_get_meta_data_filename
(
115
/*======================*/
116
dict_table_t
* table,
117
char
* filename,
118
ulint max_len)
119
__attribute__((nonnull));
120
122
extern
lsn_t
srv_shutdown_lsn
;
124
extern
lsn_t
srv_start_lsn
;
125
126
#ifdef HAVE_DARWIN_THREADS
127
128
extern
ibool
srv_have_fullfsync;
129
#endif
130
132
extern
ibool
srv_is_being_started
;
134
extern
ibool
srv_was_started
;
137
extern
ibool
srv_startup_is_before_trx_rollback_phase
;
138
140
extern
ibool
srv_start_raw_disk_in_use
;
141
142
144
enum
srv_shutdown_state
{
145
SRV_SHUTDOWN_NONE
= 0,
146
SRV_SHUTDOWN_CLEANUP
,
148
SRV_SHUTDOWN_FLUSH_PHASE
,
153
SRV_SHUTDOWN_LAST_PHASE
,
156
SRV_SHUTDOWN_EXIT_THREADS
157
};
158
161
extern
enum
srv_shutdown_state
srv_shutdown_state
;
162
#endif
/* !UNIV_HOTBACKUP */
163
165
#define SRV_LOG_SPACE_FIRST_ID 0xFFFFFFF0UL
166
167
#endif
Generated on Fri Aug 21 2015 19:14:24 for InnoDB Plugin by
1.8.1.2