1829
1829
LOCK_open.lock(); /* Lock type is TL_WRITE and we lock to repair the table */
1830
1830
const char *old_message=session->enter_cond(COND_refresh, LOCK_open,
1831
1831
"Waiting to get writelock");
1833
1833
TableIdentifier identifier(table->table->getShare()->getSchemaName(), table->table->getShare()->getTableName());
1834
1834
table::Cache::singleton().removeTable(session, identifier, RTFC_WAIT_OTHER_THREAD_FLAG | RTFC_CHECK_KILLED_FLAG);
1835
1835
session->exit_cond(old_message);