~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/myisam.h

  • Committer: Monty Taylor
  • Date: 2008-07-05 11:20:18 UTC
  • mto: This revision was merged to the branch mainline in revision 62.
  • Revision ID: monty@inaugust.com-20080705112018-fr12kkmgphtu7m29
Changes so that removal of duplicate curr_dir from my_sys.h work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
extern "C" {
22
22
#endif
23
23
 
24
 
#include <drizzled/base.h>
 
24
#ifndef _my_base_h
 
25
#include <my_base.h>
 
26
#endif
25
27
#ifndef _m_ctype_h
26
28
#include <m_ctype.h>
27
29
#endif
28
30
#ifndef _keycache_h
29
31
#include "keycache.h"
30
32
#endif
31
 
#include <mysys/my_handler.h>
32
 
#include <drizzled/plugin.h>
 
33
#include "my_handler.h"
 
34
#include <mysql/plugin.h>
33
35
 
34
36
/*
35
37
  Limit max keys according to HA_MAX_POSSIBLE_KEY
70
72
  sets all high keys.
71
73
*/
72
74
#define MI_KEYMAP_BITS      (8 * SIZEOF_LONG_LONG)
73
 
#define MI_KEYMAP_HIGH_MASK (1UL << (MI_KEYMAP_BITS - 1))
 
75
#define MI_KEYMAP_HIGH_MASK (ULL(1) << (MI_KEYMAP_BITS - 1))
74
76
#define mi_get_mask_all_keys_active(_keys_) \
75
77
                            (((_keys_) < MI_KEYMAP_BITS) ? \
76
 
                             ((1UL << (_keys_)) - 1UL) : \
77
 
                             (~ 0UL))
 
78
                             ((ULL(1) << (_keys_)) - ULL(1)) : \
 
79
                             (~ ULL(0)))
78
80
 
79
81
#if MI_MAX_KEY > MI_KEYMAP_BITS
80
82
 
81
83
#define mi_is_key_active(_keymap_,_keyno_) \
82
84
                            (((_keyno_) < MI_KEYMAP_BITS) ? \
83
 
                             test((_keymap_) & (1UL << (_keyno_))) : \
 
85
                             test((_keymap_) & (ULL(1) << (_keyno_))) : \
84
86
                             test((_keymap_) & MI_KEYMAP_HIGH_MASK))
85
87
#define mi_set_key_active(_keymap_,_keyno_) \
86
88
                            (_keymap_)|= (((_keyno_) < MI_KEYMAP_BITS) ? \
87
 
                                          (1UL << (_keyno_)) : \
 
89
                                          (ULL(1) << (_keyno_)) : \
88
90
                                          MI_KEYMAP_HIGH_MASK)
89
91
#define mi_clear_key_active(_keymap_,_keyno_) \
90
92
                            (_keymap_)&= (((_keyno_) < MI_KEYMAP_BITS) ? \
91
 
                                          (~ (1UL << (_keyno_))) : \
92
 
                                          (~ (0UL)) /*ignore*/ )
 
93
                                          (~ (ULL(1) << (_keyno_))) : \
 
94
                                          (~ (ULL(0))) /*ignore*/ )
93
95
 
94
96
#else
95
97
 
96
98
#define mi_is_key_active(_keymap_,_keyno_) \
97
 
                            test((_keymap_) & (1UL << (_keyno_)))
 
99
                            test((_keymap_) & (ULL(1) << (_keyno_)))
98
100
#define mi_set_key_active(_keymap_,_keyno_) \
99
 
                            (_keymap_)|= (1UL << (_keyno_))
 
101
                            (_keymap_)|= (ULL(1) << (_keyno_))
100
102
#define mi_clear_key_active(_keymap_,_keyno_) \
101
 
                            (_keymap_)&= (~ (1UL << (_keyno_)))
 
103
                            (_keymap_)&= (~ (ULL(1) << (_keyno_)))
102
104
 
103
105
#endif
104
106
 
135
137
           delete_length;
136
138
  ulong reclength;                      /* Recordlength */
137
139
  ulong mean_reclength;                 /* Mean recordlength (if packed) */
138
 
  uint64_t auto_increment;
139
 
  uint64_t key_map;                     /* Which keys are used */
 
140
  ulonglong auto_increment;
 
141
  ulonglong key_map;                    /* Which keys are used */
140
142
  char  *data_file_name, *index_file_name;
141
 
  uint32_t  keys;                               /* Number of keys in use */
 
143
  uint  keys;                           /* Number of keys in use */
142
144
  uint  options;                        /* HA_OPTION_... used */
143
145
  int   errkey,                         /* With key was dupplicated on err */
144
146
        sortkey;                        /* clustered by this key */
146
148
  time_t create_time;                   /* When table was created */
147
149
  time_t check_time;
148
150
  time_t update_time;
149
 
  uint32_t  reflength;
 
151
  uint  reflength;
150
152
  ulong record_offset;
151
153
  ulong *rec_per_key;                   /* for sql optimizing */
152
154
} MI_ISAMINFO;
157
159
  const char *index_file_name, *data_file_name; /* If using symlinks */
158
160
  ha_rows max_rows;
159
161
  ha_rows reloc_rows;
160
 
  uint64_t auto_increment;
161
 
  uint64_t data_file_length;
162
 
  uint64_t key_file_length;
163
 
  uint32_t old_options;
164
 
  uint8_t language;
165
 
  bool with_auto_increment;
 
162
  ulonglong auto_increment;
 
163
  ulonglong data_file_length;
 
164
  ulonglong key_file_length;
 
165
  uint old_options;
 
166
  uint8 language;
 
167
  my_bool with_auto_increment;
166
168
} MI_CREATE_INFO;
167
169
 
168
170
struct st_myisam_info;                  /* For referense */
173
175
typedef struct st_mi_keydef             /* Key definition with open & info */
174
176
{
175
177
  struct st_mi_isam_share *share;       /* Pointer to base (set in mi_open) */
176
 
  uint16_t keysegs;                     /* Number of key-segment */
177
 
  uint16_t flag;                                /* NOSAME, PACK_USED */
 
178
  uint16 keysegs;                       /* Number of key-segment */
 
179
  uint16 flag;                          /* NOSAME, PACK_USED */
178
180
 
179
 
  uint8_t  key_alg;                     /* BTREE, RTREE */
180
 
  uint16_t block_length;                        /* Length of keyblock (auto) */
181
 
  uint16_t underflow_block_length;      /* When to execute underflow */
182
 
  uint16_t keylength;                   /* Tot length of keyparts (auto) */
183
 
  uint16_t minlength;                   /* min length of (packed) key (auto) */
184
 
  uint16_t maxlength;                   /* max length of (packed) key (auto) */
185
 
  uint16_t block_size_index;            /* block_size (auto) */
186
 
  uint32_t version;                     /* For concurrent read/write */
 
181
  uint8  key_alg;                       /* BTREE, RTREE */
 
182
  uint16 block_length;                  /* Length of keyblock (auto) */
 
183
  uint16 underflow_block_length;        /* When to execute underflow */
 
184
  uint16 keylength;                     /* Tot length of keyparts (auto) */
 
185
  uint16 minlength;                     /* min length of (packed) key (auto) */
 
186
  uint16 maxlength;                     /* max length of (packed) key (auto) */
 
187
  uint16 block_size_index;              /* block_size (auto) */
 
188
  uint32 version;                       /* For concurrent read/write */
 
189
  uint32 ftparser_nr;                   /* distinct ftparser number */
187
190
 
188
191
  HA_KEYSEG *seg,*end;
189
 
 
 
192
  struct st_mysql_ftparser *parser;     /* Fulltext [pre]parser */
190
193
  int (*bin_search)(struct st_myisam_info *info,struct st_mi_keydef *keyinfo,
191
 
                    unsigned char *page,unsigned char *key,
192
 
                    uint32_t key_len,uint32_t comp_flag,unsigned char * *ret_pos,
193
 
                    unsigned char *buff, bool *was_last_key);
194
 
  uint32_t (*get_key)(struct st_mi_keydef *keyinfo,uint32_t nod_flag,unsigned char * *page,
195
 
                  unsigned char *key);
196
 
  int (*pack_key)(struct st_mi_keydef *keyinfo,uint32_t nod_flag,unsigned char *next_key,
197
 
                  unsigned char *org_key, unsigned char *prev_key, unsigned char *key,
 
194
                    uchar *page,uchar *key,
 
195
                    uint key_len,uint comp_flag,uchar * *ret_pos,
 
196
                    uchar *buff, my_bool *was_last_key);
 
197
  uint (*get_key)(struct st_mi_keydef *keyinfo,uint nod_flag,uchar * *page,
 
198
                  uchar *key);
 
199
  int (*pack_key)(struct st_mi_keydef *keyinfo,uint nod_flag,uchar *next_key,
 
200
                  uchar *org_key, uchar *prev_key, uchar *key,
198
201
                  struct st_mi_s_param *s_temp);
199
 
  void (*store_key)(struct st_mi_keydef *keyinfo, unsigned char *key_pos,
 
202
  void (*store_key)(struct st_mi_keydef *keyinfo, uchar *key_pos,
200
203
                    struct st_mi_s_param *s_temp);
201
 
  int (*ck_insert)(struct st_myisam_info *inf, uint32_t k_nr, unsigned char *k, uint32_t klen);
202
 
  int (*ck_delete)(struct st_myisam_info *inf, uint32_t k_nr, unsigned char *k, uint32_t klen);
 
204
  int (*ck_insert)(struct st_myisam_info *inf, uint k_nr, uchar *k, uint klen);
 
205
  int (*ck_delete)(struct st_myisam_info *inf, uint k_nr, uchar *k, uint klen);
203
206
} MI_KEYDEF;
204
207
 
205
208
 
207
210
 
208
211
typedef struct st_unique_def            /* Segment definition of unique */
209
212
{
210
 
  uint16_t keysegs;                     /* Number of key-segment */
211
 
  unsigned char key;                            /* Mapped to which key */
212
 
  uint8_t null_are_equal;
 
213
  uint16 keysegs;                       /* Number of key-segment */
 
214
  uchar key;                            /* Mapped to which key */
 
215
  uint8 null_are_equal;
213
216
  HA_KEYSEG *seg,*end;
214
217
} MI_UNIQUEDEF;
215
218
 
216
219
typedef struct st_mi_decode_tree        /* Decode huff-table */
217
220
{
218
 
  uint16_t *table;
 
221
  uint16 *table;
219
222
  uint   quick_table_bits;
220
 
  unsigned char  *intervalls;
 
223
  uchar  *intervalls;
221
224
} MI_DECODE_TREE;
222
225
 
223
226
 
231
234
 
232
235
typedef struct st_columndef             /* column information */
233
236
{
234
 
  int16_t  type;                                /* en_fieldtype */
235
 
  uint16_t length;                      /* length of field */
236
 
  uint32_t offset;                      /* Offset to position in row */
237
 
  uint8_t  null_bit;                    /* If column may be 0 */
238
 
  uint16_t null_pos;                    /* position for null marker */
 
237
  int16  type;                          /* en_fieldtype */
 
238
  uint16 length;                        /* length of field */
 
239
  uint32 offset;                        /* Offset to position in row */
 
240
  uint8  null_bit;                      /* If column may be 0 */
 
241
  uint16 null_pos;                      /* position for null marker */
239
242
 
240
243
#ifndef NOT_PACKED_DATABASES
241
244
  void (*unpack)(struct st_columndef *rec,struct st_mi_bit_buff *buff,
242
 
                 unsigned char *start,unsigned char *end);
 
245
                 uchar *start,uchar *end);
243
246
  enum en_fieldtype base_type;
244
 
  uint32_t space_length_bits,pack_type;
 
247
  uint space_length_bits,pack_type;
245
248
  MI_DECODE_TREE *huff_tree;
246
249
#endif
247
250
} MI_COLUMNDEF;
248
251
 
249
252
 
250
253
extern char * myisam_log_filename;              /* Name of logfile */
251
 
extern uint32_t myisam_block_size;
252
 
extern uint32_t myisam_concurrent_insert;
253
 
extern bool myisam_flush,myisam_delay_key_write,myisam_single_user;
 
254
extern ulong myisam_block_size;
 
255
extern ulong myisam_concurrent_insert;
 
256
extern my_bool myisam_flush,myisam_delay_key_write,myisam_single_user;
254
257
extern my_off_t myisam_max_temp_length;
255
 
extern uint32_t myisam_bulk_insert_tree_size, myisam_data_pointer_size;
 
258
extern ulong myisam_bulk_insert_tree_size, myisam_data_pointer_size;
256
259
 
257
260
        /* Prototypes for myisam-functions */
258
261
 
259
262
extern int mi_close(struct st_myisam_info *file);
260
 
extern int mi_delete(struct st_myisam_info *file,const unsigned char *buff);
 
263
extern int mi_delete(struct st_myisam_info *file,const uchar *buff);
261
264
extern struct st_myisam_info *mi_open(const char *name,int mode,
262
 
                                      uint32_t wait_if_locked);
 
265
                                      uint wait_if_locked);
263
266
extern int mi_panic(enum ha_panic_function function);
264
 
extern int mi_rfirst(struct st_myisam_info *file,unsigned char *buf,int inx);
265
 
extern int mi_rkey(MI_INFO *info, unsigned char *buf, int inx, const unsigned char *key,
 
267
extern int mi_rfirst(struct st_myisam_info *file,uchar *buf,int inx);
 
268
extern int mi_rkey(MI_INFO *info, uchar *buf, int inx, const uchar *key,
266
269
                   key_part_map keypart_map, enum ha_rkey_function search_flag);
267
 
extern int mi_rlast(struct st_myisam_info *file,unsigned char *buf,int inx);
268
 
extern int mi_rnext(struct st_myisam_info *file,unsigned char *buf,int inx);
269
 
extern int mi_rnext_same(struct st_myisam_info *info, unsigned char *buf);
270
 
extern int mi_rprev(struct st_myisam_info *file,unsigned char *buf,int inx);
271
 
extern int mi_rrnd(struct st_myisam_info *file,unsigned char *buf, my_off_t pos);
 
270
extern int mi_rlast(struct st_myisam_info *file,uchar *buf,int inx);
 
271
extern int mi_rnext(struct st_myisam_info *file,uchar *buf,int inx);
 
272
extern int mi_rnext_same(struct st_myisam_info *info, uchar *buf);
 
273
extern int mi_rprev(struct st_myisam_info *file,uchar *buf,int inx);
 
274
extern int mi_rrnd(struct st_myisam_info *file,uchar *buf, my_off_t pos);
272
275
extern int mi_scan_init(struct st_myisam_info *file);
273
 
extern int mi_scan(struct st_myisam_info *file,unsigned char *buf);
274
 
extern int mi_rsame(struct st_myisam_info *file,unsigned char *record,int inx);
275
 
extern int mi_rsame_with_pos(struct st_myisam_info *file,unsigned char *record,
 
276
extern int mi_scan(struct st_myisam_info *file,uchar *buf);
 
277
extern int mi_rsame(struct st_myisam_info *file,uchar *record,int inx);
 
278
extern int mi_rsame_with_pos(struct st_myisam_info *file,uchar *record,
276
279
                             int inx, my_off_t pos);
277
 
extern int mi_update(struct st_myisam_info *file,const unsigned char *old,
278
 
                     unsigned char *new_record);
279
 
extern int mi_write(struct st_myisam_info *file,unsigned char *buff);
 
280
extern int mi_update(struct st_myisam_info *file,const uchar *old,
 
281
                     uchar *new_record);
 
282
extern int mi_write(struct st_myisam_info *file,uchar *buff);
280
283
extern my_off_t mi_position(struct st_myisam_info *file);
281
 
extern int mi_status(struct st_myisam_info *info, MI_ISAMINFO *x, uint32_t flag);
 
284
extern int mi_status(struct st_myisam_info *info, MI_ISAMINFO *x, uint flag);
282
285
extern int mi_lock_database(struct st_myisam_info *file,int lock_type);
283
 
extern int mi_create(const char *name,uint32_t keys,MI_KEYDEF *keydef,
284
 
                     uint32_t columns, MI_COLUMNDEF *columndef,
285
 
                     uint32_t uniques, MI_UNIQUEDEF *uniquedef,
286
 
                     MI_CREATE_INFO *create_info, uint32_t flags);
 
286
extern int mi_create(const char *name,uint keys,MI_KEYDEF *keydef,
 
287
                     uint columns, MI_COLUMNDEF *columndef,
 
288
                     uint uniques, MI_UNIQUEDEF *uniquedef,
 
289
                     MI_CREATE_INFO *create_info, uint flags);
287
290
extern int mi_delete_table(const char *name);
288
291
extern int mi_rename(const char *from, const char *to);
289
292
extern int mi_extra(struct st_myisam_info *file,
295
298
extern int mi_log(int activate_log);
296
299
extern int mi_is_changed(struct st_myisam_info *info);
297
300
extern int mi_delete_all_rows(struct st_myisam_info *info);
298
 
extern ulong _mi_calc_blob_length(uint32_t length , const unsigned char *pos);
299
 
extern uint32_t mi_get_pointer_length(uint64_t file_length, uint32_t def);
 
301
extern ulong _mi_calc_blob_length(uint length , const uchar *pos);
 
302
extern uint mi_get_pointer_length(ulonglong file_length, uint def);
300
303
 
301
304
/* this is used to pass to mysql_myisamchk_table */
302
305
 
364
367
 
365
368
typedef struct st_sort_key_blocks               /* Used when sorting */
366
369
{
367
 
  unsigned char *buff,*end_pos;
368
 
  unsigned char lastkey[MI_MAX_POSSIBLE_KEY_BUFF];
369
 
  uint32_t last_length;
 
370
  uchar *buff,*end_pos;
 
371
  uchar lastkey[MI_MAX_POSSIBLE_KEY_BUFF];
 
372
  uint last_length;
370
373
  int inited;
371
374
} SORT_KEY_BLOCKS;
372
375
 
389
392
 
390
393
typedef struct st_mi_check_param
391
394
{
392
 
  uint64_t auto_increment_value;
393
 
  uint64_t max_data_file_length;
394
 
  uint64_t keys_in_use;
395
 
  uint64_t max_record_length;
 
395
  ulonglong auto_increment_value;
 
396
  ulonglong max_data_file_length;
 
397
  ulonglong keys_in_use;
 
398
  ulonglong max_record_length;
396
399
  my_off_t search_after_block;
397
400
  my_off_t new_file_pos,key_file_blocks;
398
401
  my_off_t keydata,totaldata,key_blocks,start_check_pos;
400
403
  ha_checksum record_checksum,glob_crc;
401
404
  ulong use_buffers,read_buffer_length,write_buffer_length,
402
405
        sort_buffer_length,sort_key_blocks;
403
 
  uint32_t out_flag,warning_printed,error_printed,verbose;
404
 
  uint32_t opt_sort_key,total_files,max_level;
405
 
  uint32_t testflag, key_cache_block_size;
406
 
  uint8_t language;
407
 
  bool using_global_keycache, opt_lock_memory, opt_follow_links;
408
 
  bool retry_repair, force_sort;
 
406
  uint out_flag,warning_printed,error_printed,verbose;
 
407
  uint opt_sort_key,total_files,max_level;
 
408
  uint testflag, key_cache_block_size;
 
409
  uint8 language;
 
410
  my_bool using_global_keycache, opt_lock_memory, opt_follow_links;
 
411
  my_bool retry_repair, force_sort;
409
412
  char temp_filename[FN_REFLEN],*isam_file_name;
410
413
  MY_TMPDIR *tmpdir;
411
414
  int tmpfile_createflag;
416
419
    The next two are used to collect statistics, see update_key_parts for
417
420
    description.
418
421
  */
419
 
  uint64_t unique_count[MI_MAX_KEY_SEG+1];
420
 
  uint64_t notnull_count[MI_MAX_KEY_SEG+1];
 
422
  ulonglong unique_count[MI_MAX_KEY_SEG+1];
 
423
  ulonglong notnull_count[MI_MAX_KEY_SEG+1];
421
424
  
422
425
  ha_checksum key_crc[HA_MAX_POSSIBLE_KEY];
423
426
  ulong rec_per_key_part[MI_MAX_KEY_SEG*HA_MAX_POSSIBLE_KEY];
427
430
  enum_mi_stats_method stats_method;
428
431
} MI_CHECK;
429
432
 
 
433
typedef struct st_sort_ft_buf
 
434
{
 
435
  uchar *buf, *end;
 
436
  int   count;
 
437
  uchar lastkey[MI_MAX_KEY_BUFF];
 
438
} SORT_FT_BUF;
 
439
 
430
440
typedef struct st_sort_info
431
441
{
432
442
  my_off_t filelength,dupp,buff_length;
433
443
  ha_rows max_records;
434
 
  uint32_t current_key, total_keys;
 
444
  uint current_key, total_keys;
435
445
  myf myf_rw;
436
446
  enum data_file_type new_data_file_type;
437
447
  MI_INFO *info;
438
448
  MI_CHECK *param;
439
 
  unsigned char *buff;
 
449
  uchar *buff;
440
450
  SORT_KEY_BLOCKS *key_block,*key_block_end;
 
451
  SORT_FT_BUF *ft_buf;
441
452
  /* sync things */
442
 
  uint32_t got_error, threads_running;
 
453
  uint got_error, threads_running;
443
454
  pthread_mutex_t mutex;
444
455
  pthread_cond_t  cond;
445
456
} SORT_INFO;
447
458
/* functions in mi_check */
448
459
void myisamchk_init(MI_CHECK *param);
449
460
int chk_status(MI_CHECK *param, MI_INFO *info);
450
 
int chk_del(MI_CHECK *param, register MI_INFO *info, uint32_t test_flag);
 
461
int chk_del(MI_CHECK *param, register MI_INFO *info, uint test_flag);
451
462
int chk_size(MI_CHECK *param, MI_INFO *info);
452
463
int chk_key(MI_CHECK *param, MI_INFO *info);
453
464
int chk_data_link(MI_CHECK *param, MI_INFO *info,int extend);
459
470
int mi_repair_parallel(MI_CHECK *param, register MI_INFO *info,
460
471
                      const char * name, int rep_quick);
461
472
int change_to_newfile(const char * filename, const char * old_ext,
462
 
                      const char * new_ext, uint32_t raid_chunks,
 
473
                      const char * new_ext, uint raid_chunks,
463
474
                      myf myflags);
 
475
int lock_file(MI_CHECK *param, File file, my_off_t start, int lock_type,
 
476
              const char *filetype, const char *filename);
464
477
void lock_memory(MI_CHECK *param);
465
478
void update_auto_increment_key(MI_CHECK *param, MI_INFO *info,
466
 
                               bool repair);
467
 
int update_state_info(MI_CHECK *param, MI_INFO *info,uint32_t update);
 
479
                               my_bool repair);
 
480
int update_state_info(MI_CHECK *param, MI_INFO *info,uint update);
468
481
void update_key_parts(MI_KEYDEF *keyinfo, ulong *rec_per_key_part,
469
 
                      uint64_t *unique, uint64_t *notnull, 
470
 
                      uint64_t records);
 
482
                      ulonglong *unique, ulonglong *notnull, 
 
483
                      ulonglong records);
471
484
int filecopy(MI_CHECK *param, File to,File from,my_off_t start,
472
485
             my_off_t length, const char *type);
473
 
int movepoint(MI_INFO *info,unsigned char *record,my_off_t oldpos,
474
 
              my_off_t newpos, uint32_t prot_key);
475
 
int write_data_suffix(SORT_INFO *sort_info, bool fix_datafile);
 
486
int movepoint(MI_INFO *info,uchar *record,my_off_t oldpos,
 
487
              my_off_t newpos, uint prot_key);
 
488
int write_data_suffix(SORT_INFO *sort_info, my_bool fix_datafile);
476
489
int test_if_almost_full(MI_INFO *info);
477
490
int recreate_table(MI_CHECK *param, MI_INFO **org_info, char *filename);
478
 
bool mi_test_if_sort_rep(MI_INFO *info, ha_rows rows, uint64_t key_map,
479
 
                            bool force);
 
491
void mi_disable_non_unique_index(MI_INFO *info, ha_rows rows);
 
492
my_bool mi_test_if_sort_rep(MI_INFO *info, ha_rows rows, ulonglong key_map,
 
493
                            my_bool force);
480
494
 
481
 
int mi_init_bulk_insert(MI_INFO *info, uint32_t cache_size, ha_rows rows);
482
 
void mi_flush_bulk_insert(MI_INFO *info, uint32_t inx);
 
495
int mi_init_bulk_insert(MI_INFO *info, ulong cache_size, ha_rows rows);
 
496
void mi_flush_bulk_insert(MI_INFO *info, uint inx);
483
497
void mi_end_bulk_insert(MI_INFO *info);
484
 
int mi_assign_to_key_cache(MI_INFO *info, uint64_t key_map, 
 
498
int mi_assign_to_key_cache(MI_INFO *info, ulonglong key_map, 
485
499
                           KEY_CACHE *key_cache);
486
500
void mi_change_key_cache(KEY_CACHE *old_key_cache,
487
501
                         KEY_CACHE *new_key_cache);
488
 
int mi_preload(MI_INFO *info, uint64_t key_map, bool ignore_leaves);
 
502
int mi_preload(MI_INFO *info, ulonglong key_map, my_bool ignore_leaves);
489
503
 
490
504
#ifdef  __cplusplus
491
505
}