summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2002-03-22 22:55:08 +0200
committerunknown <bell@sanja.is.com.ua>2002-03-22 22:55:08 +0200
commit3d2ac023a0356f72c64487715364232a3bd11abd (patch)
treea691fc4031ec0bdda379decf4651d4789739c5e8 /sql/handler.cc
parent58e0b04efc2655cafd2ba46b75c6f59e99aa5459 (diff)
downloadmariadb-git-3d2ac023a0356f72c64487715364232a3bd11abd.tar.gz
added building without query cache
configure.in: new configure parameter (now only for embeded server) include/my_global.h: now query cache always included in server, because of problrms with test suit mysql-test/r/flush.result: removed double testing mysql-test/t/flush.test: removed double testing mysql-test/t/grant_cache.test: now it is only memo about query cache mysql-test/t/query_cache.test: now it is only memo about query cache
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 33b42c6c6b0..a89e53a5846 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -309,8 +309,10 @@ int ha_commit_trans(THD *thd, THD_TRANS* trans)
}
#endif
+#ifdef HAVE_QUERY_CACHE
if (transaction_commited)
query_cache.invalidate(thd->transaction.changed_tables);
+#endif /*HAVE_QUERY_CACHE*/
if (error && trans == &thd->transaction.all && mysql_bin_log.is_open())
sql_print_error("Error: Got error during commit; Binlog is not up to date!");
thd->tx_isolation=thd->session_tx_isolation;