| 4694 | */ |
| 4695 | |
| 4696 | void 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 | |
| 4715 | void Query_cache::bins_dump() |
no test coverage detected