summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2002-11-22 00:33:15 +0200
committerbell@sanja.is.com.ua <>2002-11-22 00:33:15 +0200
commited99de7dcc812fb39859815215c44d1be87c0c03 (patch)
treeb435c42cf5ff11d8d099465a4944b83164c4bdee /sql/handler.cc
parentdd1b7e0c84a0f4b07dc8194d2c1721a6db01f297 (diff)
downloadmariadb-git-ed99de7dcc812fb39859815215c44d1be87c0c03.tar.gz
fixed invalidation of query cache
excluded double call of 'invalidate()'
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())