diff options
author | bell@sanja.is.com.ua <> | 2005-09-06 11:16:53 +0300 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2005-09-06 11:16:53 +0300 |
commit | 10c0ef69e7781744cbc124ef33daef7d0b04f969 (patch) | |
tree | 004f89b6b7df242fca8aff22d9dbf8bf672cb6a9 /sql/sql_cache.h | |
parent | 4fe8e78df175cfd72f54894591ee15e289df6f85 (diff) | |
download | mariadb-git-10c0ef69e7781744cbc124ef33daef7d0b04f969.tar.gz |
support of concurent query cache resizing (BUG#12848)
Diffstat (limited to 'sql/sql_cache.h')
-rw-r--r-- | sql/sql_cache.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_cache.h b/sql/sql_cache.h index 454f0318c12..854937d0158 100644 --- a/sql/sql_cache.h +++ b/sql/sql_cache.h @@ -310,10 +310,9 @@ protected: Following function control structure_guard_mutex by themself or don't need structure_guard_mutex */ - void init(); ulong init_cache(); void make_disabled(); - void free_cache(my_bool destruction); + void free_cache(); Query_cache_block *write_block_data(ulong data_len, gptr data, ulong header_len, Query_cache_block::block_type type, @@ -346,6 +345,8 @@ protected: uint def_query_hash_size = QUERY_CACHE_DEF_QUERY_HASH_SIZE, uint def_table_hash_size = QUERY_CACHE_DEF_TABLE_HASH_SIZE); + /* initialize cache (mutex) */ + void init(); /* resize query cache (return real query size, 0 if disabled) */ ulong resize(ulong query_cache_size); inline void result_size_limit(ulong limit){query_cache_limit=limit;} |