622
622
int Session::lock_table_name(TableList *table_list)
624
624
identifier::Table identifier(table_list->getSchemaName(), table_list->getTableName());
628
626
/* Only insert the table if we haven't insert it already */
636
630
Table *table= iter->second;
637
631
if (table->reginfo.lock_type < TL_WRITE)
642
633
if (table->in_use == this)
644
635
table->getMutableShare()->resetVersion(); // Ensure no one can use this