1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

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

This commit is contained in:
Igor Babaev
2010-09-02 07:42:47 -07:00
parent f83cc50793
commit 4a9696a451

View File

@@ -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++)