ClickHouse/src/Storages/MergeTree/MarkRange.cpp
2021-10-28 11:32:37 +03:00

15 lines
293 B
C++

#include "MarkRange.h"
namespace DB
{
size_t getLastMark(const MarkRanges & ranges)
{
size_t current_task_last_mark = 0;
for (const auto & mark_range : ranges)
current_task_last_mark = std::max(current_task_last_mark, mark_range.end);
return current_task_last_mark;
}
}