Skip to content

Commit

Permalink
Adding a debug assert to debug the case when PostponeTsCycles is zero…
Browse files Browse the repository at this point in the history
… upon Advance() (#2212)
  • Loading branch information
qkrorlqr authored Oct 4, 2024
1 parent 9061eba commit 741e3e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cloud/storage/core/libs/common/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 741e3e7

Please sign in to comment.