summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authormsvensson@neptunus.homeip.net <>2005-02-04 10:56:53 +0100
committermsvensson@neptunus.homeip.net <>2005-02-04 10:56:53 +0100
commite54ea9189d62c739065df9ec186158366970fbde (patch)
treec5a13a7369a48df8d68e09e6a1c49a02dc2841c2 /sql/sql_cache.cc
parent3181f5d2b68a195471d9bac1c07f3c3be719d521 (diff)
downloadmariadb-git-e54ea9189d62c739065df9ec186158366970fbde.tar.gz
Merge of query cache from 4.1 to 5.0
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r--sql/sql_cache.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index 68964d80bf7..e38e417e6df 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -2770,10 +2770,11 @@ my_bool Query_cache::ask_handler_allowance(THD *thd,
for (; tables_used; tables_used= tables_used->next_global)
{
TABLE *table= tables_used->table;
- if (!handler->cached_table_registration(thd, table->s->table_cache_key,
- table->s->key_length,
- &tables_used->callback_func,
- &tables_used->engine_data))
+ handler *handler= table->file;
+ if (!handler->register_query_cache_table(thd, table->s->table_cache_key,
+ table->s->key_length,
+ &tables_used->callback_func,
+ &tables_used->engine_data))
{
DBUG_PRINT("qcache", ("Handler does not allow caching for %s.%s",
tables_used->db, tables_used->alias));