Skip to content

Commit

Permalink
Update MergeTreeData.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov committed Jul 16, 2018
1 parent 9a00122 commit 4d1c470
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dbms/src/Storages/MergeTree/MergeTreeData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,7 @@ Int64 MergeTreeData::getMaxBlockNumber()

Int64 max_block_num = 0;
for (const DataPartPtr & part : data_parts_by_info)
{
max_block_num = std::max(max_block_num, part->info.max_block);
max_block_num = std::max(max_block_num, part->info.mutation);
}
max_block_num = std::max({max_block_num, part->info.max_block, part->info.mutation});

return max_block_num;
}
Expand Down

0 comments on commit 4d1c470

Please sign in to comment.