MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
myrg_static.c
1 /* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License as published by
5  the Free Software Foundation; version 2 of the License.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software
14  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
15 
16 /*
17  Static variables for pisam library. All definied here for easy making of
18  a shared library
19 */
20 
21 #ifndef stdin
22 #include "myrg_def.h"
23 #endif
24 
25 LIST *myrg_open_list=0;
26 static const char *merge_insert_methods[] =
27 { "FIRST", "LAST", NullS };
28 TYPELIB merge_insert_method= { array_elements(merge_insert_methods)-1,"",
29  merge_insert_methods, 0};
30 
31 #ifdef HAVE_PSI_INTERFACE
32 PSI_mutex_key rg_key_mutex_MYRG_INFO_mutex;
33 
34 static PSI_mutex_info all_myisammrg_mutexes[]=
35 {
36  { &rg_key_mutex_MYRG_INFO_mutex, "MYRG_INFO::mutex", 0}
37 };
38 
39 PSI_file_key rg_key_file_MRG;
40 
41 static PSI_file_info all_myisammrg_files[]=
42 {
43  { &rg_key_file_MRG, "MRG", 0}
44 };
45 
46 void init_myisammrg_psi_keys()
47 {
48  const char* category= "myisammrg";
49  int count;
50 
51  count= array_elements(all_myisammrg_mutexes);
52  mysql_mutex_register(category, all_myisammrg_mutexes, count);
53 
54  count= array_elements(all_myisammrg_files);
55  mysql_file_register(category, all_myisammrg_files, count);
56 }
57 #endif /* HAVE_PSI_INTERFACE */
58