MCPcopy Create free account
hub / github.com/MariaDB/server / flush_unused

Method flush_unused

sql/table_cache.cc:1308–1320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1306*/
1307
1308void 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}

Callers 3

copy_data_between_tablesFunction · 0.80
mysql_admin_tableFunction · 0.80

Calls 3

intern_close_tableFunction · 0.85
pop_frontMethod · 0.45

Tested by

no test coverage detected