From 741e3e736c158d8006ff5b9075e26360ea1ed408 Mon Sep 17 00:00:00 2001 From: Andrei Strelkovskii Date: Sat, 5 Oct 2024 01:17:30 +0300 Subject: [PATCH] Adding a debug assert to debug the case when PostponeTsCycles is zero upon Advance() (#2212) --- cloud/storage/core/libs/common/context.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cloud/storage/core/libs/common/context.cpp b/cloud/storage/core/libs/common/context.cpp index b2dcad9b7e..9fc1fbf048 100644 --- a/cloud/storage/core/libs/common/context.cpp +++ b/cloud/storage/core/libs/common/context.cpp @@ -86,6 +86,7 @@ void TCallContextBase::Postpone(ui64 nowCycles) Y_DEBUG_ABORT_UNLESS( AtomicGet(PostponeTsCycles) == 0, "Request was not advanced."); + Y_DEBUG_ABORT_UNLESS(nowCycles > 0); AtomicSet(PostponeTsCycles, nowCycles); }