~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/db.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:
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();