dbms: tiny modification [#METR-2944].

This commit is contained in:
Alexey Milovidov 2014-09-29 09:03:03 +04:00
parent fdd34069ff
commit af02e67992

View File

@ -81,10 +81,9 @@ MergeTreeData::MergeTreeData(
UInt64 MergeTreeData::getMaxDataPartIndex()
{
UInt64 max_part_id = 0;
for (DataParts::iterator it = data_parts.begin(); it != data_parts.end(); ++it)
{
max_part_id = std::max(max_part_id, (*it)->right);
}
for (const auto & part : data_parts)
max_part_id = std::max(max_part_id, part->right);
return max_part_id;
}