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

Method tables_dump

sql/sql_cache.cc:4851–4877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4849
4850
4851void Query_cache::tables_dump()
4852{
4853#ifdef DBUG_TRACE
4854 if (!initialized || query_cache_size == 0)
4855 {
4856 DBUG_PRINT("qcache", ("Query Cache not initialized"));
4857 return;
4858 }
4859
4860 DBUG_PRINT("qcache", ("--------------------"));
4861 DBUG_PRINT("qcache", ("TABLES"));
4862 DBUG_PRINT("qcache", ("--------------------"));
4863 if (tables_blocks != 0)
4864 {
4865 Query_cache_block *table_block = tables_blocks;
4866 do
4867 {
4868 Query_cache_table *table = table_block->table();
4869 DBUG_PRINT("qcache", ("'%s' '%s'", table->db(), table->table()));
4870 table_block = table_block->next;
4871 } while (table_block != tables_blocks);
4872 }
4873 else
4874 DBUG_PRINT("qcache", ("no tables in list"));
4875 DBUG_PRINT("qcache", ("--------------------"));
4876#endif
4877}
4878
4879
4880/**

Callers

nothing calls this directly

Calls 2

tableMethod · 0.45
dbMethod · 0.45

Tested by

no test coverage detected