~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_info.c

  • Committer: Stewart Smith
  • Date: 2008-06-30 05:33:25 UTC
  • mfrom: (12.2.8 drizzle)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: stewart@flamingspork.com-20080630053325-mwrv6bjaufcpvj8n
merge my work

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
int mi_status(MI_INFO *info, register MI_ISAMINFO *x, uint flag)
35
35
{
36
 
  MY_STAT state;
 
36
  struct stat state;
37
37
  MYISAM_SHARE *share=info->s;
38
38
  DBUG_ENTER("mi_status");
39
39
 
85
85
    x->data_file_name   = share->data_file_name;
86
86
    x->index_file_name  = share->index_file_name;
87
87
  }
88
 
  if ((flag & HA_STATUS_TIME) && !my_fstat(info->dfile,&state,MYF(0)))
 
88
  if ((flag & HA_STATUS_TIME) && !fstat(info->dfile,&state))
89
89
    x->update_time=state.st_mtime;
90
90
  else
91
91
    x->update_time=0;