~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.cc

  • Committer: Stewart Smith
  • Date: 2009-06-03 02:42:22 UTC
  • mto: This revision was merged to the branch mainline in revision 1053.
  • Revision ID: stewart@flamingspork.com-20090603024222-h614blveuihhdpot
move handler::rename_table to StorageEngine

Show diffs side-by-side

added added

removed removed

Lines of Context:
481
481
  return HA_ERR_TABLE_EXIST;
482
482
}
483
483
 
 
484
int StorageEngine::rename_table(Session *, const char * from, const char * to)
 
485
{
 
486
  int error= 0;
 
487
  for (const char **ext= bas_ext(); *ext ; ext++)
 
488
  {
 
489
    if (rename_file_ext(from, to, *ext))
 
490
    {
 
491
      if ((error=my_errno) != ENOENT)
 
492
        break;
 
493
      error= 0;
 
494
    }
 
495
  }
 
496
  return error;
 
497
}
 
498
 
 
499
 
484
500
/**
485
501
  Delete all files with extension from bas_ext().
486
502