~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.cc

  • Committer: lbieber
  • Date: 2010-10-08 03:03:39 UTC
  • mfrom: (1812.3.4 refactor)
  • mto: This revision was merged to the branch mainline in revision 1823.
  • Revision ID: lbieber@orisndriz08-20101008030339-voe0trh3qrawdlr6
Merge Brian - When we were dropping a table we were doing a lookup that we no longer need to do.

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
 
150
150
  LOCK_open.lock(); /* Part 2 of rm a table */
151
151
 
152
 
  /*
153
 
    If we have the table in the definition cache, we don't have to check the
154
 
    .frm cursor to find if the table is a normal table (not view) and what
155
 
    engine to use.
156
 
  */
157
 
 
158
 
  for (table= tables; table; table= table->next_local)
159
 
  {
160
 
    TableIdentifier identifier(table->db, table->table_name);
161
 
    TableShare *share;
162
 
    table->setDbType(NULL);
163
 
 
164
 
    if ((share= TableShare::getShare(identifier)))
165
 
    {
166
 
      table->setDbType(share->db_type());
167
 
    }
168
 
  }
169
 
 
170
152
  if (not drop_temporary && lock_table_names_exclusively(session, tables))
171
153
  {
172
154
    LOCK_open.unlock();