summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshakurov <[email protected]>2025-03-30 01:07:04 +0300
committershakurov <[email protected]>2025-03-30 01:19:13 +0300
commit4c1de68653231a7ecf2d1099086b7149d74e1702 (patch)
tree6f8dc095d7eb616ed913ca705aa7e1251761e602
parent6dd445352cc4f9e2e4e925082700ed42f895ecad (diff)
DelayedExecutor::CancelAndClear is now actually guaranteed to clear
commit_hash:fc1993998d8878ae6887294fb3d58e76bf3daf81
-rw-r--r--yt/yt/core/concurrency/delayed_executor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt/yt/core/concurrency/delayed_executor.cpp b/yt/yt/core/concurrency/delayed_executor.cpp
index 6b9758f13fa..ae711381692 100644
--- a/yt/yt/core/concurrency/delayed_executor.cpp
+++ b/yt/yt/core/concurrency/delayed_executor.cpp
@@ -562,7 +562,7 @@ void TDelayedExecutor::Cancel(const TDelayedExecutorCookie& cookie)
void TDelayedExecutor::CancelAndClear(TDelayedExecutorCookie& cookie)
{
- NDetail::TDelayedExecutorImpl::Get()->Cancel(std::move(cookie));
+ NDetail::TDelayedExecutorImpl::Get()->Cancel(std::exchange(cookie, {}));
}
////////////////////////////////////////////////////////////////////////////////