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

Method wreck

sql/sql_cache.cc:4696–4712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4694*/
4695
4696void Query_cache::wreck(uint line, const char *message)
4697{
4698 THD *thd=current_thd;
4699 DBUG_ENTER("Query_cache::wreck");
4700 query_cache_size = 0;
4701 if (*message)
4702 DBUG_PRINT("error", (" %s", message));
4703 DBUG_PRINT("warning", ("=================================="));
4704 DBUG_PRINT("warning", ("%5d QUERY CACHE WRECK => DISABLED",line));
4705 DBUG_PRINT("warning", ("=================================="));
4706 if (thd)
4707 thd->set_killed(KILL_CONNECTION);
4708 cache_dump();
4709 /* check_integrity(0); */ /* Can't call it here because of locks */
4710 bins_dump();
4711 DBUG_VOID_RETURN;
4712}
4713
4714
4715void Query_cache::bins_dump()

Callers 3

queryMethod · 0.80
tableMethod · 0.80
resultMethod · 0.80

Calls 3

cache_dumpFunction · 0.85
bins_dumpFunction · 0.85
set_killedMethod · 0.80

Tested by

no test coverage detected