We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9955b8 commit 9740792Copy full SHA for 9740792
ydb/core/tx/columnshard/engines/storage/optimizer/lcbuckets/planner/abstract.h
@@ -135,8 +135,12 @@ class TCompactionTaskData {
135
public:
136
ui64 GetTargetCompactionLevel() const {
137
if (MemoryUsage > ((ui64)1 << 30)) {
138
- AFL_VERIFY(TargetCompactionLevel);
139
- return TargetCompactionLevel - 1;
+ if (TargetCompactionLevel) {
+ return TargetCompactionLevel - 1;
140
+ } else {
141
+ AFL_VERIFY(false);
142
+ return 0;
143
+ }
144
} else {
145
return TargetCompactionLevel;
146
}
0 commit comments