~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-15 06:45:16 UTC
  • Revision ID: brian@tangent.org-20080715064516-fnbq7kowh7w57bxj
Merge Monty's code.

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 */
 
33
ulong   myisam_block_size= MI_KEY_BLOCK_LENGTH;         /* Best by test */
32
34
bool myisam_flush= false;
33
35
bool myisam_delay_key_write= false;
34
36
bool myisam_single_user= false;
35
 
uint32_t myisam_concurrent_insert= 2;
 
37
#if !defined(DONT_USE_RW_LOCKS)
 
38
ulong myisam_concurrent_insert= 2;
 
39
#else
 
40
ulong myisam_concurrent_insert= 0;
 
41
#endif
36
42
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;
 
43
ulong    myisam_bulk_insert_tree_size=8192*1024;
 
44
ulong    myisam_data_pointer_size=4;
39
45
 
40
46
/*
41
47
  read_vec[] is used for converting between P_READ_KEY.. and SEARCH_
42
48
  Position is , == , >= , <= , > , <
43
49
*/
44
50
 
45
 
uint32_t  myisam_read_vec[]=
 
51
uint  myisam_read_vec[]=
46
52
{
47
53
  SEARCH_FIND, SEARCH_FIND | SEARCH_BIGGER, SEARCH_FIND | SEARCH_SMALLER,
48
54
  SEARCH_NO_FIND | SEARCH_BIGGER, SEARCH_NO_FIND | SEARCH_SMALLER,
50
56
  MBR_CONTAIN, MBR_INTERSECT, MBR_WITHIN, MBR_DISJOINT, MBR_EQUAL
51
57
};
52
58
 
53
 
uint32_t  myisam_readnext_vec[]=
 
59
uint  myisam_readnext_vec[]=
54
60
{
55
61
  SEARCH_BIGGER, SEARCH_BIGGER, SEARCH_SMALLER, SEARCH_BIGGER, SEARCH_SMALLER,
56
62
  SEARCH_BIGGER, SEARCH_SMALLER, SEARCH_SMALLER