summaryrefslogtreecommitdiff
path: root/sql/sql_cache.cc
diff options
context:
space:
mode:
authorunknown <sanja@montyprogram.com>2012-04-19 17:00:13 +0300
committerunknown <sanja@montyprogram.com>2012-04-19 17:00:13 +0300
commit4cae07968c3d112adc1d7c16b6baf923d9a039a5 (patch)
tree776f8505ac93a31206e1937a079dc5d7ecdde6d3 /sql/sql_cache.cc
parentd16ea779f814ec10a2cd2cc44a6cacca3bd45705 (diff)
downloadmariadb-git-4cae07968c3d112adc1d7c16b6baf923d9a039a5.tar.gz
Dependency of tests from ulong size removed.
Diffstat (limited to 'sql/sql_cache.cc')
-rw-r--r--sql/sql_cache.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_cache.cc b/sql/sql_cache.cc
index 210d259f364..96814562757 100644
--- a/sql/sql_cache.cc
+++ b/sql/sql_cache.cc
@@ -1348,9 +1348,10 @@ ulong Query_cache::resize(ulong query_cache_size_arg)
ulong Query_cache::set_min_res_unit(ulong size)
{
+ DBUG_ASSERT(size % 8 == 0);
if (size < min_allocation_unit)
- size= min_allocation_unit;
- return (min_result_data_size= ALIGN_SIZE(size));
+ size= ALIGN_SIZE(min_allocation_unit);
+ return (min_result_data_size= size);
}