Commit 51092cea authored by Igor Babaev's avatar Igor Babaev

Fixed a typo bug in JOIN_CACHE::shrink_join_buffer_in_ratio.

parent f6d2d815
......@@ -874,7 +874,7 @@ bool JOIN_CACHE::shrink_join_buffer_in_ratio(ulonglong n, ulonglong d)
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();
}
......
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