summaryrefslogtreecommitdiff
path: root/storage/cassandra
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2013-02-04 10:14:20 +0400
committerSergey Petrunya <psergey@askmonty.org>2013-02-04 10:14:20 +0400
commit6ae14e6cd27903e44ad1432214622e51303a5aec (patch)
tree17f0292764aa7f6a1b0eb6d3caf21454867d4605 /storage/cassandra
parent0abbcf7b000dd5f3e9ae4b4d0e849766026f0b9e (diff)
downloadmariadb-git-6ae14e6cd27903e44ad1432214622e51303a5aec.tar.gz
MDEV-3997: Querying a Cassandra table on a server with query cache enabled is likely to cause problems
- Disable query cache for Cassandra tables.
Diffstat (limited to 'storage/cassandra')
-rw-r--r--storage/cassandra/ha_cassandra.h14
1 files changed, 14 insertions, 0 deletions
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;
+ }
};