~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_static.c

  • Committer: Brian Aker
  • Date: 2008-07-06 15:03:34 UTC
  • Revision ID: brian@tangent.org-20080706150334-xv3xa202trvs0712
USE_RAID cleanup, along with ftbench tools.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
  a shared library
19
19
*/
20
20
 
 
21
#ifndef _global_h
21
22
#include "myisamdef.h"
 
23
#endif
22
24
 
23
25
LIST    *myisam_open_list=0;
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', };
 
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
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
 
bool myisam_flush= false;
33
 
bool myisam_delay_key_write= false;
34
 
bool myisam_single_user= false;
35
 
uint32_t myisam_concurrent_insert= 2;
 
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(DONT_USE_RW_LOCKS)
 
36
ulong myisam_concurrent_insert= 2;
 
37
#else
 
38
ulong myisam_concurrent_insert= 0;
 
39
#endif
36
40
my_off_t myisam_max_temp_length= MAX_FILE_SIZE;
37
 
uint32_t myisam_bulk_insert_tree_size=8192*1024;
38
 
uint32_t myisam_data_pointer_size=4;
 
41
ulong    myisam_bulk_insert_tree_size=8192*1024;
 
42
ulong    myisam_data_pointer_size=4;
39
43
 
40
44
/*
41
45
  read_vec[] is used for converting between P_READ_KEY.. and SEARCH_
42
46
  Position is , == , >= , <= , > , <
43
47
*/
44
48
 
45
 
uint32_t  myisam_read_vec[]=
 
49
uint  myisam_read_vec[]=
46
50
{
47
51
  SEARCH_FIND, SEARCH_FIND | SEARCH_BIGGER, SEARCH_FIND | SEARCH_SMALLER,
48
52
  SEARCH_NO_FIND | SEARCH_BIGGER, SEARCH_NO_FIND | SEARCH_SMALLER,
50
54
  MBR_CONTAIN, MBR_INTERSECT, MBR_WITHIN, MBR_DISJOINT, MBR_EQUAL
51
55
};
52
56
 
53
 
uint32_t  myisam_readnext_vec[]=
 
57
uint  myisam_readnext_vec[]=
54
58
{
55
59
  SEARCH_BIGGER, SEARCH_BIGGER, SEARCH_SMALLER, SEARCH_BIGGER, SEARCH_SMALLER,
56
60
  SEARCH_BIGGER, SEARCH_SMALLER, SEARCH_SMALLER