diff options
author | mysqldev@mysql.com <> | 2004-12-16 09:37:29 +0100 |
---|---|---|
committer | mysqldev@mysql.com <> | 2004-12-16 09:37:29 +0100 |
commit | e127fc34c32d4ce65ff4a4ce25268dfe17edaf06 (patch) | |
tree | d0588dd734a50e1a0c76ef32cdf781947b9b5e6e /sql/handler.h | |
parent | 2083ecd12446712dd9c81fd5c4904bbd721331ba (diff) | |
parent | c30ddab38706a37b335ed345f9a445dfb2f7efa6 (diff) | |
download | mariadb-git-e127fc34c32d4ce65ff4a4ce25268dfe17edaf06.tar.gz |
Merge
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sql/handler.h b/sql/handler.h index 245defe61e0..547eda47ddd 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -507,10 +507,15 @@ public: /* Type of table for caching query */ virtual uint8 table_cache_type() { return HA_CACHE_TBL_NONTRANSACT; } - /* - Is query with this table cachable (have sense only for ASKTRANSACT - tables) - */ + /* ask handler about permission to cache table during query registration */ + virtual my_bool cached_table_registration(THD *thd, char *table_key, + uint key_length, + qc_engine_callback *engine_callback, + ulonglong *engine_data) + { + *engine_callback= 0; + return 1; + } }; /* Some extern variables used with handlers */ @@ -529,8 +534,6 @@ extern TYPELIB tx_isolation_typelib; T != DB_TYPE_BERKELEY_DB && \ T != DB_TYPE_NDBCLUSTER) -bool ha_caching_allowed(THD* thd, char* table_key, - uint key_length, uint8 cache_type); enum db_type ha_resolve_by_name(const char *name, uint namelen); const char *ha_get_storage_engine(enum db_type db_type); handler *get_new_handler(TABLE *table, enum db_type db_type); |