InnoDB Plugin  1.0
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
44 /*=======================*/
45  char* str);
46 /*********************************************************************/
50 UNIV_INTERN
51 ibool
53 /*================================*/
54  char* str);
55 /*********************************************************************/
58 UNIV_INTERN
59 void
61 /*==========================*/
62 /*********************************************************************/
66 UNIV_INTERN
67 char*
69 /*=============================*/
70  char* str);
71 #ifndef UNIV_HOTBACKUP
72 /****************************************************************/
76 UNIV_INTERN
77 dberr_t
79 /*====================================*/
80 /****************************************************************/
83 UNIV_INTERN
84 dberr_t
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
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
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 
134 extern ibool srv_was_started;
138 
141 
142 
157 };
158 
162 #endif /* !UNIV_HOTBACKUP */
163 
165 #define SRV_LOG_SPACE_FIRST_ID 0xFFFFFFF0UL
166 
167 #endif