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

Fixed a typo bug in JOIN_CACHE::shrink_join_buffer_in_ratio.

This commit is contained in:
Igor Babaev
2010-09-02 17:16:03 -07:00
parent 4a9696a451
commit 61e96a75a6

View File

@@ -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();
}