~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_check.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:
98
98
  param->tmpfile_createflag=O_RDWR | O_TRUNC | O_EXCL;
99
99
  param->myf_rw=MYF(MY_NABP | MY_WME | MY_WAIT_IF_FULL);
100
100
  param->start_check_pos=0;
101
 
  param->max_record_length= LONGLONG_MAX;
 
101
  param->max_record_length= INT64_MAX;
102
102
  param->key_cache_block_size= KEY_CACHE_BLOCK_SIZE;
103
103
  param->stats_method= MI_STATS_METHOD_NULLS_NOT_EQUAL;
104
104
}
1582
1582
  /* This function always recreates all enabled indexes. */
1583
1583
  if (param->testflag & T_CREATE_MISSING_KEYS)
1584
1584
    mi_set_all_keys_active(share->state.key_map, share->base.keys);
1585
 
  mi_drop_all_indexes(param, info, TRUE);
 
1585
  mi_drop_all_indexes(param, info, true);
1586
1586
 
1587
1587
  lock_memory(param);                   /* Everything is alloced */
1588
1588
 
2194
2194
  info->update= (short) (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED);
2195
2195
 
2196
2196
  /* Optionally drop indexes and optionally modify the key_map. */
2197
 
  mi_drop_all_indexes(param, info, FALSE);
 
2197
  mi_drop_all_indexes(param, info, false);
2198
2198
  key_map= share->state.key_map;
2199
2199
  if (param->testflag & T_CREATE_MISSING_KEYS)
2200
2200
  {
2609
2609
  info->update= (short) (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED);
2610
2610
 
2611
2611
  /* Optionally drop indexes and optionally modify the key_map. */
2612
 
  mi_drop_all_indexes(param, info, FALSE);
 
2612
  mi_drop_all_indexes(param, info, false);
2613
2613
  key_map= share->state.key_map;
2614
2614
  if (param->testflag & T_CREATE_MISSING_KEYS)
2615
2615
  {
3986
3986
    Allow for creating an auto_increment key. This has an effect only if
3987
3987
    an auto_increment key exists in the original table.
3988
3988
  */
3989
 
  create_info.with_auto_increment= TRUE;
 
3989
  create_info.with_auto_increment= true;
3990
3990
  /* We don't have to handle symlinks here because we are using
3991
3991
     HA_DONT_TOUCH_DATA */
3992
3992
  if (mi_create(filename,
4327
4327
 
4328
4328
 
4329
4329
/*
4330
 
  Return TRUE if we can use repair by sorting
 
4330
  Return true if we can use repair by sorting
4331
4331
  One can set the force argument to force to use sorting
4332
4332
  even if the temporary file would be quite big!
4333
4333
*/
4344
4344
    have any keys, we should use the normal repair.
4345
4345
  */
4346
4346
  if (! mi_is_any_key_active(key_map))
4347
 
    return FALSE;                               /* Can't use sort */
 
4347
    return false;                               /* Can't use sort */
4348
4348
  for (i=0 ; i < share->base.keys ; i++,key++)
4349
4349
  {
4350
4350
    if (!force && mi_too_big_key_for_sort(key,rows))
4351
 
      return FALSE;
 
4351
      return false;
4352
4352
  }
4353
 
  return TRUE;
 
4353
  return true;
4354
4354
}
4355
4355
 
4356
4356