1827
1864
/* Close all instances of the table to allow repair to rename files */
1830
1867
pthread_mutex_lock(&LOCK_open); /* Lock type is TL_WRITE and we lock to repair the table */
1831
1868
const char *old_message=session->enter_cond(&COND_refresh, &LOCK_open,
1832
1869
"Waiting to get writelock");
1833
1870
mysql_lock_abort(session,table->table);
1836
1873
RTFC_WAIT_OTHER_THREAD_FLAG |
1838
1875
session->exit_cond(old_message);