Skip to content

Commit 9740792

Browse files
authored
pacify static code analyzer (#13167)
1 parent e9955b8 commit 9740792

File tree

1 file changed

+6
-2
lines changed
  • ydb/core/tx/columnshard/engines/storage/optimizer/lcbuckets/planner

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,12 @@ class TCompactionTaskData {
135135
public:
136136
ui64 GetTargetCompactionLevel() const {
137137
if (MemoryUsage > ((ui64)1 << 30)) {
138-
AFL_VERIFY(TargetCompactionLevel);
139-
return TargetCompactionLevel - 1;
138+
if (TargetCompactionLevel) {
139+
return TargetCompactionLevel - 1;
140+
} else {
141+
AFL_VERIFY(false);
142+
return 0;
143+
}
140144
} else {
141145
return TargetCompactionLevel;
142146
}

0 commit comments

Comments
 (0)