diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-05-18 14:23:05 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-05-18 14:23:05 +0200 |
commit | 280fcf08085e43b5359ec79c0e34166e51b3ebd8 (patch) | |
tree | 0180226f5648752d1d5bc2b7dd23e7cecf3253b1 /sql/ha_partition.h | |
parent | 5a47413934a0ba0aeb91224f1010bb70bd9b1e8a (diff) | |
parent | 57f824b0990b0a8708665a4a9ede245ce6064539 (diff) | |
download | mariadb-git-280fcf08085e43b5359ec79c0e34166e51b3ebd8.tar.gz |
5.1 merge
Diffstat (limited to 'sql/ha_partition.h')
-rw-r--r-- | sql/ha_partition.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/sql/ha_partition.h b/sql/ha_partition.h index 59449ef9634..b1e38e0421d 100644 --- a/sql/ha_partition.h +++ b/sql/ha_partition.h @@ -1,5 +1,5 @@ /* - Copyright (c) 2005, 2011, Oracle and/or its affiliates. + Copyright (c) 2005, 2012, Oracle and/or its affiliates. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -220,9 +220,9 @@ public: */ ha_partition(handlerton *hton, TABLE_SHARE * table); ha_partition(handlerton *hton, partition_info * part_info); - ha_partition(handlerton *hton, TABLE_SHARE *share,
- partition_info *part_info_arg,
- ha_partition *clone_arg,
+ ha_partition(handlerton *hton, TABLE_SHARE *share, + partition_info *part_info_arg, + ha_partition *clone_arg, MEM_ROOT *clone_mem_root_arg); ~ha_partition(); /* @@ -552,6 +552,20 @@ public: virtual int extra(enum ha_extra_function operation); virtual int extra_opt(enum ha_extra_function operation, ulong cachesize); virtual int reset(void); + /* + Do not allow caching of partitioned tables, since we cannot return + a callback or engine_data that would work for a generic engine. + */ + virtual my_bool register_query_cache_table(THD *thd, char *table_key, + uint key_length, + qc_engine_callback + *engine_callback, + ulonglong *engine_data) + { + *engine_callback= NULL; + *engine_data= 0; + return FALSE; + } private: static const uint NO_CURRENT_PART_ID; |