Skip to content

Commit 414d0a4

Browse files
authored
fix LSM level counters in VDisk (#29124) (#29149)
2 parents 5173198 + fe30fb1 commit 414d0a4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ydb/core/blobstorage/vdisk/common/vdisk_mongroups.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ public:
477477
///////////////////////////////////////////////////////////////////////////////////
478478
class TLsmAllLevelsStat {
479479
public:
480-
static constexpr ui32 MaxCounterLevels = 20;
480+
static constexpr ui32 MaxCounterLevels = 24;
481481

482482
TIntrusivePtr<::NMonitoring::TDynamicCounters> Group;
483483
// per-level information

ydb/core/blobstorage/vdisk/hulldb/generic/hullds_idx.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,9 @@ namespace NKikimr {
492492
for (const auto& seg : level.Segs->Segments) {
493493
process(info, seg.Get());
494494
}
495-
++levelIndex;
495+
if (++levelIndex >= NMonGroup::TLsmAllLevelsStat::MaxCounterLevels) {
496+
break;
497+
}
496498
}
497499

498500
AllLevelsDataInplaced = allLevelsDataInplaced;

0 commit comments

Comments
 (0)