Protected Member Functions |
void | flush_cache () |
my_bool | free_old_query () |
void | free_query (Query_cache_block *point) |
my_bool | allocate_data_chain (Query_cache_block **result_block, ulong data_len, Query_cache_block *query_block, my_bool first_block) |
void | invalidate_table (THD *thd, TABLE_LIST *table) |
void | invalidate_table (THD *thd, TABLE *table) |
void | invalidate_table (THD *thd, uchar *key, uint32 key_length) |
void | invalidate_table (THD *thd, Query_cache_block *table_block) |
void | invalidate_query_block_list (THD *thd, Query_cache_block_table *list_root) |
TABLE_COUNTER_TYPE | register_tables_from_list (TABLE_LIST *tables_used, TABLE_COUNTER_TYPE counter, Query_cache_block_table *block_table) |
my_bool | register_all_tables (Query_cache_block *block, TABLE_LIST *tables_used, TABLE_COUNTER_TYPE tables) |
my_bool | insert_table (uint key_len, const char *key, Query_cache_block_table *node, uint32 db_length, uint8 cache_type, qc_engine_callback callback, ulonglong engine_data) |
void | unlink_table (Query_cache_block_table *node) |
Query_cache_block * | get_free_block (ulong len, my_bool not_less, ulong min) |
void | free_memory_block (Query_cache_block *point) |
void | split_block (Query_cache_block *block, ulong len) |
Query_cache_block * | join_free_blocks (Query_cache_block *first_block, Query_cache_block *block_in_list) |
my_bool | append_next_free_block (Query_cache_block *block, ulong add_size) |
void | exclude_from_free_memory_list (Query_cache_block *free_block) |
void | insert_into_free_memory_list (Query_cache_block *new_block) |
my_bool | move_by_type (uchar **border, Query_cache_block **before, ulong *gap, Query_cache_block *i) |
uint | find_bin (ulong size) |
void | move_to_query_list_end (Query_cache_block *block) |
void | insert_into_free_memory_sorted_list (Query_cache_block *new_block, Query_cache_block **list) |
void | pack_cache () |
void | relink (Query_cache_block *oblock, Query_cache_block *nblock, Query_cache_block *next, Query_cache_block *prev, Query_cache_block *pnext, Query_cache_block *pprev) |
my_bool | join_results (ulong join_limit) |
ulong | init_cache () |
void | make_disabled () |
void | free_cache () |
Query_cache_block * | write_block_data (ulong data_len, uchar *data, ulong header_len, Query_cache_block::block_type type, TABLE_COUNTER_TYPE ntab=0) |
my_bool | append_result_data (Query_cache_block **result, ulong data_len, uchar *data, Query_cache_block *parent) |
my_bool | write_result_data (Query_cache_block **result, ulong data_len, uchar *data, Query_cache_block *parent, Query_cache_block::block_type type=Query_cache_block::RESULT) |
ulong | get_min_first_result_data_size () |
ulong | get_min_append_result_data_size () |
Query_cache_block * | allocate_block (ulong len, my_bool not_less, ulong min) |
TABLE_COUNTER_TYPE | is_cacheable (THD *thd, size_t query_len, const char *query, LEX *lex, TABLE_LIST *tables_used, uint8 *tables_type) |
TABLE_COUNTER_TYPE | process_and_count_tables (THD *thd, TABLE_LIST *tables_used, uint8 *tables_type) |