12
12
You should have received a copy of the GNU General Public License
13
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 */
14
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
17
17
Static variables for MyISAM library. All definied here for easy making of
21
#include "myisam_priv.h"
22
#include "myisamdef.h"
23
std::list<MI_INFO *> myisam_open_list;
24
unsigned char myisam_file_magic[]=
25
{ (unsigned char) 254, (unsigned char) 254,'\007', '\001', };
26
unsigned char myisam_pack_file_magic[]=
27
{ (unsigned char) 254, (unsigned char) 254,'\010', '\002', };
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', };
28
30
char * myisam_log_filename=(char*) "myisam.log";
29
int myisam_log_file= -1;
31
File myisam_log_file= -1;
30
32
uint myisam_quick_table_bits=9;
31
uint32_t myisam_block_size= MI_KEY_BLOCK_LENGTH; /* Best by test */
32
uint32_t myisam_concurrent_insert= 2;
33
uint32_t myisam_bulk_insert_tree_size=8192*1024;
34
uint32_t data_pointer_size= 6;
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;
38
ulong myisam_concurrent_insert= 0;
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;
37
45
read_vec[] is used for converting between P_READ_KEY.. and SEARCH_
38
46
Position is , == , >= , <= , > , <
41
uint32_t myisam_read_vec[]=
49
uint myisam_read_vec[]=
43
51
SEARCH_FIND, SEARCH_FIND | SEARCH_BIGGER, SEARCH_FIND | SEARCH_SMALLER,
44
52
SEARCH_NO_FIND | SEARCH_BIGGER, SEARCH_NO_FIND | SEARCH_SMALLER,
46
54
MBR_CONTAIN, MBR_INTERSECT, MBR_WITHIN, MBR_DISJOINT, MBR_EQUAL
49
uint32_t myisam_readnext_vec[]=
57
uint myisam_readnext_vec[]=
51
59
SEARCH_BIGGER, SEARCH_BIGGER, SEARCH_SMALLER, SEARCH_BIGGER, SEARCH_SMALLER,
52
60
SEARCH_BIGGER, SEARCH_SMALLER, SEARCH_SMALLER