| 2442 | /* Remove all queries from cache */ |
| 2443 | |
| 2444 | void 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 | /** |
nothing calls this directly
no test coverage detected