Commit 4a9696a4 authored by Igor Babaev's avatar Igor Babaev

Made sure that JOIN_CACHE::max_records is not less than 10.

parent f83cc507
...@@ -802,7 +802,7 @@ int JOIN_CACHE::alloc_buffer() ...@@ -802,7 +802,7 @@ int JOIN_CACHE::alloc_buffer()
min_records= 1; min_records= 1;
max_records= partial_join_cardinality <= join_buff_space_limit ? max_records= partial_join_cardinality <= join_buff_space_limit ?
(ulonglong) 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(); min_buff_size= get_min_join_buffer_size();
buff_size= get_max_join_buffer_size(); buff_size= get_max_join_buffer_size();
for (tab= join->join_tab+join->const_tables; tab <= join_tab; tab++) for (tab= join->join_tab+join->const_tables; tab <= join_tab; tab++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment