~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_static.c

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
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 */
15
15
 
16
16
/*
17
17
  Static variables for MyISAM library. All definied here for easy making of
18
18
  a shared library
19
19
*/
20
20
 
21
 
#include "myisam_priv.h"
 
21
#ifndef _global_h
 
22
#include "myisamdef.h"
 
23
#endif
22
24
 
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;
 
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;
35
43
 
36
44
/*
37
45
  read_vec[] is used for converting between P_READ_KEY.. and SEARCH_
38
46
  Position is , == , >= , <= , > , <
39
47
*/
40
48
 
41
 
uint32_t  myisam_read_vec[]=
 
49
uint  myisam_read_vec[]=
42
50
{
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
47
55
};
48
56
 
49
 
uint32_t  myisam_readnext_vec[]=
 
57
uint  myisam_readnext_vec[]=
50
58
{
51
59
  SEARCH_BIGGER, SEARCH_BIGGER, SEARCH_SMALLER, SEARCH_BIGGER, SEARCH_SMALLER,
52
60
  SEARCH_BIGGER, SEARCH_SMALLER, SEARCH_SMALLER