~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/db.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:
360
360
 
361
361
  LOCK_open.lock(); /* Part 2 of rm a table */
362
362
 
363
 
  /*
364
 
    If we have the table in the definition cache, we don't have to check the
365
 
    .frm cursor to find if the table is a normal table (not view) and what
366
 
    engine to use.
367
 
  */
368
 
 
369
 
  for (table= tables; table; table= table->next_local)
370
 
  {
371
 
    TableIdentifier identifier(table->db, table->table_name);
372
 
    TableShare *share;
373
 
    table->setDbType(NULL);
374
 
    if ((share= TableShare::getShare(identifier)))
375
 
    {
376
 
      table->setDbType(share->db_type());
377
 
    }
378
 
  }
379
 
 
380
363
  if (lock_table_names_exclusively(session, tables))
381
364
  {
382
365
    LOCK_open.unlock();