ClickHouse/src/Storages/MergeTree/MarkRange.cpp

15 lines
293 B
C++
Raw Normal View History

2021-10-27 21:54:06 +00:00
#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;
}
}