~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_info.c

Merge/fix in FAQ.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
/* Get information about the table */
32
32
/* if flag == 2 one get current info (no sync from database */
33
33
 
34
 
int mi_status(MI_INFO *info, register MI_ISAMINFO *x, uint32_t flag)
 
34
int mi_status(MI_INFO *info, register MI_ISAMINFO *x, uint flag)
35
35
{
36
36
  struct stat state;
37
37
  MYISAM_SHARE *share=info->s;
42
42
  if (!(flag & HA_STATUS_NO_LOCK))
43
43
  {
44
44
    pthread_mutex_lock(&share->intern_lock);
45
 
    _mi_readinfo(info,F_RDLCK,0);
 
45
    VOID(_mi_readinfo(info,F_RDLCK,0));
46
46
    fast_mi_writeinfo(info);
47
47
    pthread_mutex_unlock(&share->intern_lock);
48
48
  }
57
57
    x->keys             = share->state.header.keys;
58
58
    x->check_time       = share->state.check_time;
59
59
    x->mean_reclength= x->records ?
60
 
      (uint32_t) ((x->data_file_length - x->delete_length) / x->records) :
61
 
      (uint32_t) share->min_pack_length;
 
60
      (ulong) ((x->data_file_length - x->delete_length) / x->records) :
 
61
      (ulong) share->min_pack_length;
62
62
  }
63
63
  if (flag & HA_STATUS_ERRKEY)
64
64
  {