diff options
author | msvensson@neptunus.homeip.net <> | 2005-02-03 09:33:48 +0100 |
---|---|---|
committer | msvensson@neptunus.homeip.net <> | 2005-02-03 09:33:48 +0100 |
commit | 3181f5d2b68a195471d9bac1c07f3c3be719d521 (patch) | |
tree | 124933fc3f5e4d884003ee7d669c299d2fef2fb1 /sql/handler.h | |
parent | 459fa7f1f9489a5a90bb1d7c65bf869ae5f48e82 (diff) | |
parent | efd5ed2f9e7c671bebd05ae2d2a776d55f8f857c (diff) | |
download | mariadb-git-3181f5d2b68a195471d9bac1c07f3c3be719d521.tar.gz |
Merged "query cache for ndb" to 5.0
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sql/handler.h b/sql/handler.h index 2b5c66fd886..2720a0bff33 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -592,6 +592,15 @@ public: /* Type of table for caching query */ virtual uint8 table_cache_type() { return HA_CACHE_TBL_NONTRANSACT; } + /* 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; + } /* RETURN @@ -622,8 +631,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); |