[Commits] bzr commit into Mariadb 5.2, with Maria 2.0:maria/5.2 branch (igor:2818)

Igor Babaev igor at askmonty.org
Fri Sep 3 03:16:14 EEST 2010


#At lp:maria/5.2 based on revid:igor at askmonty.org-20100902144247-hwfvfdbsdpzg3l9a

 2818 Igor Babaev	2010-09-02
      Fixed a typo bug in JOIN_CACHE::shrink_join_buffer_in_ratio.
      modified:
        sql/sql_join_cache.cc

=== modified file 'sql/sql_join_cache.cc'
--- a/sql/sql_join_cache.cc	2010-09-02 14:42:47 +0000
+++ b/sql/sql_join_cache.cc	2010-09-03 00:16:03 +0000
@@ -874,7 +874,7 @@ bool JOIN_CACHE::shrink_join_buffer_in_r
   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();
 }  



More information about the commits mailing list