2299
2299
pthread_mutex_lock(&LOCK_open); /* Lock type is TL_WRITE and we lock to repair the table */
2300
2300
const char *old_message=session->enter_cond(&COND_refresh, &LOCK_open,
2301
2301
"Waiting to get writelock");
2303
2303
remove_table_from_cache(session, table->table->s->db.str,
2304
2304
table->table->s->table_name.str,
2305
2305
RTFC_WAIT_OTHER_THREAD_FLAG |