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