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/* This file is included by all myisam-merge files */
17
18#ifndef N_MAXKEY
19#include "../myisam/myisamdef.h"
20#endif
21
22#include "myisammrg.h"
23
24extern LIST *myrg_open_list;
25
26extern mysql_mutex_t THR_LOCK_open;
27
28int _myrg_init_queue(MYRG_INFO *info,int inx,enum ha_rkey_function search_flag);
29int _myrg_mi_read_record(MI_INFO *info, uchar *buf);
30#ifdef __cplusplus
31extern "C"
32#endif
33void myrg_print_wrong_table(const char *table_name);
34
35#ifdef HAVE_PSI_INTERFACE
36
37C_MODE_START
38extern PSI_mutex_key rg_key_mutex_MYRG_INFO_mutex;
39extern PSI_file_key rg_key_file_MRG;
40void init_myisammrg_psi_keys();
41C_MODE_END
42#endif /* HAVE_PSI_INTERFACE */
43
44