~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.cc

  • Committer: lbieber
  • Date: 2010-10-08 04:41:29 UTC
  • mfrom: (1822.1.2 build)
  • Revision ID: lbieber@orisndriz08-20101008044129-o3ba457zk60i0spn
Merge Brian - When we were dropping a table we were doing a lookup that we no longer need to do.
Merge Shrews - fix bug 656474: transaction_reader not outputting ROLLBACKs

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();