Drizzled Public API Documentation

mi_static.cc
00001 /* Copyright (C) 2000-2002, 2004-2005 MySQL AB
00002 
00003    This program is free software; you can redistribute it and/or modify
00004    it under the terms of the GNU General Public License as published by
00005    the Free Software Foundation; version 2 of the License.
00006 
00007    This program is distributed in the hope that it will be useful,
00008    but WITHOUT ANY WARRANTY; without even the implied warranty of
00009    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010    GNU General Public License for more details.
00011 
00012    You should have received a copy of the GNU General Public License
00013    along with this program; if not, write to the Free Software
00014    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
00015 
00016 /*
00017   Static variables for MyISAM library. All definied here for easy making of
00018   a shared library
00019 */
00020 
00021 #include "myisam_priv.h"
00022 
00023 std::list<MI_INFO *> myisam_open_list;
00024 unsigned char  myisam_file_magic[]=
00025 { (unsigned char) 254, (unsigned char) 254,'\007', '\001', };
00026 unsigned char  myisam_pack_file_magic[]=
00027 { (unsigned char) 254, (unsigned char) 254,'\010', '\002', };
00028 char * myisam_log_filename=(char*) "myisam.log";
00029 int myisam_log_file= -1;
00030 uint  myisam_quick_table_bits=9;
00031 uint32_t myisam_block_size= MI_KEY_BLOCK_LENGTH;    /* Best by test */
00032 uint32_t myisam_concurrent_insert= 2;
00033 uint32_t myisam_bulk_insert_tree_size=8192*1024;
00034 uint32_t data_pointer_size= 6;
00035 
00036 /*
00037   read_vec[] is used for converting between P_READ_KEY.. and SEARCH_
00038   Position is , == , >= , <= , > , <
00039 */
00040 
00041 uint32_t  myisam_read_vec[]=
00042 {
00043   SEARCH_FIND, SEARCH_FIND | SEARCH_BIGGER, SEARCH_FIND | SEARCH_SMALLER,
00044   SEARCH_NO_FIND | SEARCH_BIGGER, SEARCH_NO_FIND | SEARCH_SMALLER,
00045   SEARCH_FIND | SEARCH_PREFIX, SEARCH_LAST, SEARCH_LAST | SEARCH_SMALLER,
00046   MBR_CONTAIN, MBR_INTERSECT, MBR_WITHIN, MBR_DISJOINT, MBR_EQUAL
00047 };
00048 
00049 uint32_t  myisam_readnext_vec[]=
00050 {
00051   SEARCH_BIGGER, SEARCH_BIGGER, SEARCH_SMALLER, SEARCH_BIGGER, SEARCH_SMALLER,
00052   SEARCH_BIGGER, SEARCH_SMALLER, SEARCH_SMALLER
00053 };