dbms: little better [#METR-19371].

This commit is contained in:
Alexey Milovidov 2015-12-11 04:21:53 +03:00
parent c150e0afd6
commit 8addc4b7c7

View File

@ -60,7 +60,7 @@ void filterArraysImpl(
if (result_size_hint < 0) if (result_size_hint < 0)
res_elems.reserve(src_elems.size()); res_elems.reserve(src_elems.size());
else if (result_size_hint < 1000000000 && src_elems.size() < 1000000000) /// Избегаем переполнения. else if (result_size_hint < 1000000000 && src_elems.size() < 1000000000) /// Избегаем переполнения.
res_elems.reserve(result_size_hint * src_elems.size() / size); res_elems.reserve((result_size_hint * src_elems.size() + size - 1) / size);
} }
IColumn::Offset_t current_src_offset = 0; IColumn::Offset_t current_src_offset = 0;