Skip to content

Commit 774754f

Browse files
committed
Allow last two portions on a level to be compacted (#19116)
1 parent c8bb861 commit 774754f

File tree

1 file changed

+1
-1
lines changed
  • ydb/core/tx/columnshard/engines/storage/optimizer/lcbuckets/planner/level

1 file changed

+1
-1
lines changed

ydb/core/tx/columnshard/engines/storage/optimizer/lcbuckets/planner/level/common_level.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class TOneLayerPortions: public IPortionsLevel {
5959
if (!GetNextLevel()) {
6060
return 0;
6161
}
62-
if ((ui64)GetPortionsInfo().GetBlobBytes() > GetLevelBlobBytesLimit() && GetPortionsInfo().GetCount() > 2 &&
62+
if ((ui64)GetPortionsInfo().GetBlobBytes() > GetLevelBlobBytesLimit() && GetPortionsInfo().GetCount() >= 2 &&
6363
(ui64)GetPortionsInfo().GetBlobBytes() > ExpectedPortionSize * 2) {
6464
return ((ui64)GetLevelId() << 48) + GetPortionsInfo().GetBlobBytes() - GetLevelBlobBytesLimit();
6565
} else {

0 commit comments

Comments
 (0)