~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/myisam.h

Merged in Eric's whitespace cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
371
371
} SORT_KEY_BLOCKS;
372
372
 
373
373
 
374
 
/* 
375
 
  MyISAM supports several statistics collection methods. Currently statistics 
376
 
  collection method is not stored in MyISAM file and has to be specified for 
 
374
/*
 
375
  MyISAM supports several statistics collection methods. Currently statistics
 
376
  collection method is not stored in MyISAM file and has to be specified for
377
377
  each table analyze/repair operation in  MI_CHECK::stats_method.
378
378
*/
379
379
 
380
 
typedef enum 
 
380
typedef enum
381
381
{
382
382
  /* Treat NULLs as inequal when collecting statistics (default for 4.1/5.0) */
383
383
  MI_STATS_METHOD_NULLS_NOT_EQUAL,
411
411
  int tmpfile_createflag;
412
412
  myf myf_rw;
413
413
  IO_CACHE read_cache;
414
 
  
415
 
  /* 
 
414
 
 
415
  /*
416
416
    The next two are used to collect statistics, see update_key_parts for
417
417
    description.
418
418
  */
419
419
  uint64_t unique_count[MI_MAX_KEY_SEG+1];
420
420
  uint64_t notnull_count[MI_MAX_KEY_SEG+1];
421
 
  
 
421
 
422
422
  ha_checksum key_crc[HA_MAX_POSSIBLE_KEY];
423
423
  ulong rec_per_key_part[MI_MAX_KEY_SEG*HA_MAX_POSSIBLE_KEY];
424
424
  void *session;
466
466
                               bool repair);
467
467
int update_state_info(MI_CHECK *param, MI_INFO *info,uint32_t update);
468
468
void update_key_parts(MI_KEYDEF *keyinfo, ulong *rec_per_key_part,
469
 
                      uint64_t *unique, uint64_t *notnull, 
 
469
                      uint64_t *unique, uint64_t *notnull,
470
470
                      uint64_t records);
471
471
int filecopy(MI_CHECK *param, File to,File from,my_off_t start,
472
472
             my_off_t length, const char *type);
481
481
int mi_init_bulk_insert(MI_INFO *info, uint32_t cache_size, ha_rows rows);
482
482
void mi_flush_bulk_insert(MI_INFO *info, uint32_t inx);
483
483
void mi_end_bulk_insert(MI_INFO *info);
484
 
int mi_assign_to_key_cache(MI_INFO *info, uint64_t key_map, 
 
484
int mi_assign_to_key_cache(MI_INFO *info, uint64_t key_map,
485
485
                           KEY_CACHE *key_cache);
486
486
void mi_change_key_cache(KEY_CACHE *old_key_cache,
487
487
                         KEY_CACHE *new_key_cache);