summaryrefslogtreecommitdiff
path: root/sql/sql_cache.h
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-12-06 01:05:30 +0200
committermonty@hundin.mysql.fi <>2001-12-06 01:05:30 +0200
commit4c17825acd56ccbbf7e6649e7ebe98c34f992c84 (patch)
treeb6eaff9c9c574324b7a2aae18f5de2e52f89576c /sql/sql_cache.h
parent40da50460543ee76d70b727506bf0676be9bcd52 (diff)
downloadmariadb-git-4c17825acd56ccbbf7e6649e7ebe98c34f992c84.tar.gz
Update of query cache code
Diffstat (limited to 'sql/sql_cache.h')
-rw-r--r--sql/sql_cache.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/sql/sql_cache.h b/sql/sql_cache.h
index 09eb745e405..f5f0580d051 100644
--- a/sql/sql_cache.h
+++ b/sql/sql_cache.h
@@ -241,12 +241,12 @@ protected:
Query_cache_memory_bin *bins; // free block lists
Query_cache_memory_bin_step *steps; // bins spacing info
HASH queries, tables;
- uint mem_bin_num, mem_bin_steps; // See at init_cache & find_bin
- my_bool initialized;
-
/* options */
ulong min_allocation_unit, min_result_data_size;
uint def_query_hash_size, def_table_hash_size;
+ uint mem_bin_num, mem_bin_steps; // See at init_cache & find_bin
+
+ my_bool initialized;
/* Exclude/include from cyclic double linked list */
static void double_linked_list_exclude(Query_cache_block *point,
@@ -368,10 +368,7 @@ protected:
/* Remove all queries that uses any of the listed following table */
void invalidate_by_MyISAM_filename(const char *filename);
- /* Remove all queries from cache */
void flush();
-
- /* Join result in cache in 1 block (if result length > join_limit) */
void pack(ulong join_limit = QUERY_CACHE_PACK_LIMIT,
uint iteration_limit = QUERY_CACHE_PACK_ITERATION);