~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/sql_table.cc

  • 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:
3322
3322
  TABLE_SHARE *share;
3323
3323
  char from[FN_REFLEN],tmp[FN_REFLEN+32];
3324
3324
  const char **ext;
3325
 
  MY_STAT stat_info;
 
3325
  struct stat stat_info;
3326
3326
  DBUG_ENTER("prepare_for_repair");
3327
3327
 
3328
3328
  if (!(check_opt->sql_flags & TT_USEFRM))
3384
3384
 
3385
3385
  // Name of data file
3386
3386
  strxmov(from, table->s->normalized_path.str, ext[1], NullS);
3387
 
  if (!my_stat(from, &stat_info, MYF(0)))
 
3387
  if (stat(from, &stat_info))
3388
3388
    goto end;                           // Can't use USE_FRM flag
3389
3389
 
3390
3390
  my_snprintf(tmp, sizeof(tmp), "%s-%lx_%lx",