summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r--sql/sql_cache.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index 6cfcff8a7ff..c25a7e5afe4 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -873,10 +873,7 @@ Query_cache::send_result_to_client(THD *thd, char *sql, uint query_length)
(thd->options & (OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN)) ||
thd->variables.query_cache_type == 0)
- {
- DBUG_PRINT("qcache", ("query cache disabled or not in autocommit mode"));
goto err;
- }
/* Check that we haven't forgot to reset the query cache variables */
DBUG_ASSERT(thd->net.query_cache_query == 0);
@@ -1021,6 +1018,7 @@ err:
DBUG_RETURN(0); // Query was not cached
}
+
/*
Remove all cached queries that uses any of the tables in the list
*/