mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
15 lines
293 B
C++
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;
|
|
}
|
|
|
|
}
|