~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.cc

  • Committer: Brian Aker
  • Date: 2010-03-18 21:45:08 UTC
  • mto: This revision was merged to the branch mainline in revision 1361.
  • Revision ID: brian@gaz-20100318214508-u32z2fccmv9id7n8
doDropTable() now only uses identifier.

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
  @retval
127
127
    !0  Error
128
128
*/
129
 
int StorageEngine::doDropTable(Session&,
130
 
                               TableIdentifier &,
131
 
                               const string &table_path)
 
129
int StorageEngine::doDropTable(Session&, TableIdentifier &identifier)
 
130
                               
132
131
{
133
132
  int error= 0;
134
133
  int enoent_or_zero= ENOENT;                   // Error if no file was deleted
136
135
 
137
136
  for (const char **ext= bas_ext(); *ext ; ext++)
138
137
  {
139
 
    internal::fn_format(buff, table_path.c_str(), "", *ext,
 
138
    internal::fn_format(buff, identifier.getPath(), "", *ext,
140
139
              MY_UNPACK_FILENAME|MY_APPEND_EXT);
141
140
    if (internal::my_delete_with_symlink(buff, MYF(0)))
142
141
    {