1
by brian
clean slate |
1 |
/* Copyright (C) 2000-2002, 2004-2005 MySQL AB
|
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
|
15 |
||
16 |
/*
|
|
17 |
Static variables for MyISAM library. All definied here for easy making of
|
|
18 |
a shared library
|
|
19 |
*/
|
|
20 |
||
21 |
#ifndef _global_h
|
|
22 |
#include "myisamdef.h" |
|
23 |
#endif
|
|
24 |
||
25 |
LIST *myisam_open_list=0; |
|
26 |
uchar myisam_file_magic[]= |
|
27 |
{ (uchar) 254, (uchar) 254,'\007', '\001', }; |
|
28 |
uchar myisam_pack_file_magic[]= |
|
29 |
{ (uchar) 254, (uchar) 254,'\010', '\002', }; |
|
30 |
char * myisam_log_filename=(char*) "myisam.log"; |
|
31 |
File myisam_log_file= -1; |
|
32 |
uint myisam_quick_table_bits=9; |
|
33 |
ulong myisam_block_size= MI_KEY_BLOCK_LENGTH; /* Best by test */ |
|
34 |
my_bool myisam_flush=0, myisam_delay_key_write=0, myisam_single_user=0; |
|
35 |
#if defined(THREAD) && !defined(DONT_USE_RW_LOCKS)
|
|
36 |
ulong myisam_concurrent_insert= 2; |
|
37 |
#else
|
|
38 |
ulong myisam_concurrent_insert= 0; |
|
39 |
#endif
|
|
40 |
my_off_t myisam_max_temp_length= MAX_FILE_SIZE; |
|
41 |
ulong myisam_bulk_insert_tree_size=8192*1024; |
|
42 |
ulong myisam_data_pointer_size=4; |
|
43 |
||
44 |
/*
|
|
45 |
read_vec[] is used for converting between P_READ_KEY.. and SEARCH_
|
|
46 |
Position is , == , >= , <= , > , <
|
|
47 |
*/
|
|
48 |
||
49 |
uint myisam_read_vec[]= |
|
50 |
{
|
|
51 |
SEARCH_FIND, SEARCH_FIND | SEARCH_BIGGER, SEARCH_FIND | SEARCH_SMALLER, |
|
52 |
SEARCH_NO_FIND | SEARCH_BIGGER, SEARCH_NO_FIND | SEARCH_SMALLER, |
|
53 |
SEARCH_FIND | SEARCH_PREFIX, SEARCH_LAST, SEARCH_LAST | SEARCH_SMALLER, |
|
54 |
MBR_CONTAIN, MBR_INTERSECT, MBR_WITHIN, MBR_DISJOINT, MBR_EQUAL |
|
55 |
};
|
|
56 |
||
57 |
uint myisam_readnext_vec[]= |
|
58 |
{
|
|
59 |
SEARCH_BIGGER, SEARCH_BIGGER, SEARCH_SMALLER, SEARCH_BIGGER, SEARCH_SMALLER, |
|
60 |
SEARCH_BIGGER, SEARCH_SMALLER, SEARCH_SMALLER |
|
61 |
};
|