summaryrefslogtreecommitdiff
path: root/sql/sql_cache.h
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2003-03-02 21:39:03 +0200
committerunknown <bell@sanja.is.com.ua>2003-03-02 21:39:03 +0200
commit98077b0ef66dfc3ef14e0487f23b1e1e46b84f37 (patch)
treeec81cf25e43bd59edb6884368afd018c075a766e /sql/sql_cache.h
parent16cdf759a14c34b87c8d1b6924e65e55a3765d4c (diff)
downloadmariadb-git-98077b0ef66dfc3ef14e0487f23b1e1e46b84f37.tar.gz
made variable query_cache_min_res_unit from QUERY_CACHE_MIN_RESULT_DATA_SIZE (SCRUM)
mysql-test/r/query_cache.result: test of query_cache_min_res_unit mysql-test/t/query_cache.test: test of query_cache_min_res_unit sql/mysql_priv.h: made variable query_cache_min_res_unit from QUERY_CACHE_MIN_RESULT_DATA_SIZE sql/mysqld.cc: made variable query_cache_min_res_unit from QUERY_CACHE_MIN_RESULT_DATA_SIZE sql/set_var.cc: made variable query_cache_min_res_unit from QUERY_CACHE_MIN_RESULT_DATA_SIZE sql/sql_cache.cc: method for parameter changing sql/sql_cache.h: method for parameter changing
Diffstat (limited to 'sql/sql_cache.h')
-rw-r--r--sql/sql_cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_cache.h b/sql/sql_cache.h
index b15df28f54b..68bd3d48ff5 100644
--- a/sql/sql_cache.h
+++ b/sql/sql_cache.h
@@ -345,7 +345,10 @@ protected:
/* resize query cache (return real query size, 0 if disabled) */
ulong resize(ulong query_cache_size);
+ /* set limit on result size */
inline void result_size_limit(ulong limit){query_cache_limit=limit;}
+ /* set minimal result data allocation unit size */
+ ulong set_min_res_unit(ulong size);
/* register query in cache */
void store_query(THD *thd, TABLE_LIST *used_tables);