From 6ae14e6cd27903e44ad1432214622e51303a5aec Mon Sep 17 00:00:00 2001 From: Sergey Petrunya Date: Mon, 4 Feb 2013 10:14:20 +0400 Subject: MDEV-3997: Querying a Cassandra table on a server with query cache enabled is likely to cause problems - Disable query cache for Cassandra tables. --- storage/cassandra/ha_cassandra.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'storage/cassandra') diff --git a/storage/cassandra/ha_cassandra.h b/storage/cassandra/ha_cassandra.h index cc42234e385..cb2f9fb237b 100644 --- a/storage/cassandra/ha_cassandra.h +++ b/storage/cassandra/ha_cassandra.h @@ -272,4 +272,18 @@ public: THR_LOCK_DATA **store_lock(THD *thd, THR_LOCK_DATA **to, enum thr_lock_type lock_type); ///< required + + my_bool register_query_cache_table(THD *thd, char *table_key, + uint key_length, + qc_engine_callback + *engine_callback, + ulonglong *engine_data) + { + /* + Do not put data from Cassandra tables into query cache (because there + is no way to tell whether the data in cassandra cluster has changed or + not) + */ + return FALSE; + } }; -- cgit v1.2.1