From 2bf13c597d1811d0c6a337d15a9c0224f6e40047 Mon Sep 17 00:00:00 2001 From: ivanmorozov333 Date: Fri, 6 Dec 2024 18:29:52 +0300 Subject: [PATCH] fix compaction levels constuction (#12351) --- .../engines/storage/optimizer/lcbuckets/planner/optimizer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ydb/core/tx/columnshard/engines/storage/optimizer/lcbuckets/planner/optimizer.cpp b/ydb/core/tx/columnshard/engines/storage/optimizer/lcbuckets/planner/optimizer.cpp index b26a2b90d041..c229de85a682 100644 --- a/ydb/core/tx/columnshard/engines/storage/optimizer/lcbuckets/planner/optimizer.cpp +++ b/ydb/core/tx/columnshard/engines/storage/optimizer/lcbuckets/planner/optimizer.cpp @@ -27,6 +27,7 @@ TOptimizerPlanner::TOptimizerPlanner(const ui64 pathId, const std::shared_ptrBuildLevel(nextLevel, idx, Counters->GetLevelCounters(idx))); + nextLevel = Levels.back(); } } else { Levels.emplace_back(std::make_shared(2, nullptr, Counters->GetLevelCounters(2), TDuration::Max(), 1 << 20));