mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
dbms: tiny modification [#METR-2944].
This commit is contained in:
parent
fdd34069ff
commit
af02e67992
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user