From f905001f55da98f527ffb06d68e310fa5d0e2160 Mon Sep 17 00:00:00 2001 From: zverevgeny Date: Wed, 25 Dec 2024 11:31:12 +0300 Subject: [PATCH] make code analyzer happy (#12860) --- .../engines/changes/abstract/compaction_info.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ydb/core/tx/columnshard/engines/changes/abstract/compaction_info.cpp b/ydb/core/tx/columnshard/engines/changes/abstract/compaction_info.cpp index 664ef41d4415..334fab3e9887 100644 --- a/ydb/core/tx/columnshard/engines/changes/abstract/compaction_info.cpp +++ b/ydb/core/tx/columnshard/engines/changes/abstract/compaction_info.cpp @@ -5,8 +5,12 @@ namespace NKikimr::NOlap { bool TPlanCompactionInfo::Finish() { - AFL_VERIFY(Count); - return --Count == 0; + if (Count > 0) { + return --Count == 0; + } else { + AFL_VERIFY(false); + return false; + } } } // namespace NKikimr::NOlap