~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.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:
1849
1849
  return(table->file->errkey);
1850
1850
}
1851
1851
 
1852
 
int handler::rename_table(const char * from, const char * to)
1853
 
{
1854
 
  int error= 0;
1855
 
  for (const char **ext= engine->bas_ext(); *ext ; ext++)
1856
 
  {
1857
 
    if (rename_file_ext(from, to, *ext))
1858
 
    {
1859
 
      if ((error=my_errno) != ENOENT)
1860
 
        break;
1861
 
      error= 0;
1862
 
    }
1863
 
  }
1864
 
  return error;
1865
 
}
1866
 
 
1867
 
 
1868
1852
void handler::drop_table(const char *name)
1869
1853
{
1870
1854
  close();
2104
2088
{
2105
2089
  mark_trx_read_write();
2106
2090
 
2107
 
  return rename_table(from, to);
 
2091
  return engine->rename_table(ha_session(), from, to);
2108
2092
}
2109
2093
 
2110
2094