~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/db.cc

  • Committer: Stewart Smith
  • Date: 2010-03-30 13:10:54 UTC
  • mfrom: (1283.28.32)
  • mto: (1283.38.1)
  • mto: This revision was merged to the branch mainline in revision 1536.
  • Revision ID: stewart@flamingspork.com-20100330131054-9l6wuqylf7eae9i0
Merged embedded-innodb-position-rnd-pos into embedded-innodb-autoincrement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
231
231
    return -1;
232
232
  }
233
233
 
 
234
  // Lets delete the temporary tables first outside of locks.  
 
235
  set<string> set_of_names;
 
236
  session->doGetTableNames(schema_name, set_of_names);
 
237
 
 
238
  for (set<string>::iterator iter= set_of_names.begin(); iter != set_of_names.end(); iter++)
 
239
  {
 
240
    TableIdentifier identifier(schema_name, *iter, message::Table::TEMPORARY);
 
241
    Table *table= session->find_temporary_table(identifier);
 
242
    session->close_temporary_table(table);
 
243
  }
 
244
 
234
245
  pthread_mutex_lock(&LOCK_create_db);
235
246
 
236
247