summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2002-11-22 00:33:15 +0200
committerunknown <bell@sanja.is.com.ua>2002-11-22 00:33:15 +0200
commit03ac294cceb5619557fffacbf95901f4c5b1997f (patch)
treeb435c42cf5ff11d8d099465a4944b83164c4bdee /sql/handler.cc
parent910849ccd1f5f24e90de0f48091a4c6981c71126 (diff)
downloadmariadb-git-03ac294cceb5619557fffacbf95901f4c5b1997f.tar.gz
fixed invalidation of query cache
excluded double call of 'invalidate()' mysql-test/r/innodb_cache.result: test of invalidation mysql-test/t/innodb_cache.test: test of invalidation sql/handler.cc: excluded double call of 'invalidate()' sql/sql_delete.cc: fixed invalidation of query cache sql/sql_insert.cc: fixed invalidation of query cache sql/sql_update.cc: fixed invalidation of query cache
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index f07e90d2eb9..c4e742ef519 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -314,7 +314,7 @@ int ha_commit_trans(THD *thd, THD_TRANS* trans)
}
#endif
#ifdef HAVE_QUERY_CACHE
- if (transaction_commited)
+ if (transaction_commited && thd->transaction.changed_tables)
query_cache.invalidate(thd->transaction.changed_tables);
#endif /*HAVE_QUERY_CACHE*/
if (error && trans == &thd->transaction.all && mysql_bin_log.is_open())