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

Method flush

sql/sql_cache.cc:2444–2463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2442 /* Remove all queries from cache */
2443
2444void Query_cache::flush()
2445{
2446 DBUG_ENTER("Query_cache::flush");
2447 if (is_disabled())
2448 DBUG_VOID_RETURN;
2449
2450 QC_DEBUG_SYNC("wait_in_query_cache_flush1");
2451
2452 lock_and_suspend();
2453 if (query_cache_size > 0)
2454 {
2455 DUMP(this);
2456 flush_cache();
2457 DUMP(this);
2458 }
2459
2460 DBUG_EXECUTE("check_querycache",query_cache.check_integrity(1););
2461 unlock();
2462 DBUG_VOID_RETURN;
2463}
2464
2465
2466/**

Callers

nothing calls this directly

Calls 1

check_integrityMethod · 0.80

Tested by

no test coverage detected