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

Igor Babaev igor at askmonty.org
Thu Sep 2 17:42:59 EEST 2010


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

 2817 Igor Babaev	2010-09-02
      Made sure that JOIN_CACHE::max_records is not less than 10.
      modified:
        sql/sql_join_cache.cc

=== modified file 'sql/sql_join_cache.cc'
--- a/sql/sql_join_cache.cc	2010-09-02 06:11:14 +0000
+++ b/sql/sql_join_cache.cc	2010-09-02 14:42:47 +0000
@@ -802,7 +802,7 @@ int JOIN_CACHE::alloc_buffer()
   min_records= 1;
   max_records= partial_join_cardinality <= join_buff_space_limit ?
                  (ulonglong) partial_join_cardinality : join_buff_space_limit;
-  set_if_bigger(max_records, 1);
+  set_if_bigger(max_records, 10);
   min_buff_size= get_min_join_buffer_size();
   buff_size= get_max_join_buffer_size();
   for (tab= join->join_tab+join->const_tables; tab <= join_tab; tab++)



More information about the commits mailing list