diff options
author | unknown <bell@sanja.is.com.ua> | 2003-03-02 21:39:03 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2003-03-02 21:39:03 +0200 |
commit | 98077b0ef66dfc3ef14e0487f23b1e1e46b84f37 (patch) | |
tree | ec81cf25e43bd59edb6884368afd018c075a766e /sql/sql_cache.cc | |
parent | 16cdf759a14c34b87c8d1b6924e65e55a3765d4c (diff) | |
download | mariadb-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.cc')
-rw-r--r-- | sql/sql_cache.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc index 90fd61ebeb7..7ea50a62239 100644 --- a/sql/sql_cache.cc +++ b/sql/sql_cache.cc @@ -743,6 +743,14 @@ ulong Query_cache::resize(ulong query_cache_size_arg) } +ulong Query_cache::set_min_res_unit(ulong size) +{ + if (size < min_allocation_unit) + size= min_allocation_unit; + return (min_result_data_size= ALIGN_SIZE(size)); +} + + void Query_cache::store_query(THD *thd, TABLE_LIST *tables_used) { TABLE_COUNTER_TYPE local_tables; |