From 61e96a75a6cf94044f20325ff163283a69d7bab7 Mon Sep 17 00:00:00 2001 From: Igor Babaev Date: Thu, 2 Sep 2010 17:16:03 -0700 Subject: [PATCH] Fixed a typo bug in JOIN_CACHE::shrink_join_buffer_in_ratio. --- sql/sql_join_cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_join_cache.cc b/sql/sql_join_cache.cc index 17bd9ac98ef..f48db588fa6 100755 --- a/sql/sql_join_cache.cc +++ b/sql/sql_join_cache.cc @@ -874,7 +874,7 @@ bool JOIN_CACHE::shrink_join_buffer_in_ratio(ulonglong n, ulonglong d) if (n < d) return FALSE; next_buff_size= (ulonglong) ((double) buff_size / n * d); - set_if_smaller(next_buff_size, min_buff_size); + set_if_bigger(next_buff_size, min_buff_size); buff_size= next_buff_size; return realloc_buffer(); }