Commit 61e96a75 authored by Igor Babaev's avatar Igor Babaev

Fixed a typo bug in JOIN_CACHE::shrink_join_buffer_in_ratio.

parent 4a9696a4
...@@ -874,7 +874,7 @@ bool JOIN_CACHE::shrink_join_buffer_in_ratio(ulonglong n, ulonglong d) ...@@ -874,7 +874,7 @@ bool JOIN_CACHE::shrink_join_buffer_in_ratio(ulonglong n, ulonglong d)
if (n < d) if (n < d)
return FALSE; return FALSE;
next_buff_size= (ulonglong) ((double) buff_size / n * d); 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; buff_size= next_buff_size;
return realloc_buffer(); return realloc_buffer();
} }
......
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