| 1306 | */ |
| 1307 | |
| 1308 | void TDC_element::flush_unused(bool mark_flushed) |
| 1309 | { |
| 1310 | Share_free_tables::List purge_tables; |
| 1311 | |
| 1312 | mysql_mutex_lock(&LOCK_table_share); |
| 1313 | if (mark_flushed) |
| 1314 | flushed= true; |
| 1315 | tc_remove_all_unused_tables(this, &purge_tables); |
| 1316 | mysql_mutex_unlock(&LOCK_table_share); |
| 1317 | |
| 1318 | while (auto table= purge_tables.pop_front()) |
| 1319 | intern_close_table(table); |
| 1320 | } |
no test coverage detected