diff options
author | osidorkin <osidorkin@yandex-team.com> | 2024-11-05 05:21:17 +0300 |
---|---|---|
committer | osidorkin <osidorkin@yandex-team.com> | 2024-11-05 05:46:59 +0300 |
commit | d15e9a68e049f1d0436c80966327ef39afd44917 (patch) | |
tree | 41082e528b2544ac5dd4f16732774c1a6722b8c5 | |
parent | df76af3554576a325fd7d017a9cccb19a9a94e28 (diff) | |
download | ydb-d15e9a68e049f1d0436c80966327ef39afd44917.tar.gz |
YT-23122: Ping replication card residency cache during long polling. Trivial: address cosmetics
commit_hash:cff5c3c98e26af991a486f95d353b78dfddb90b8
-rw-r--r-- | yt/yt/core/misc/async_expiring_cache-inl.h | 3 | ||||
-rw-r--r-- | yt/yt/core/misc/async_expiring_cache.h | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/yt/yt/core/misc/async_expiring_cache-inl.h b/yt/yt/core/misc/async_expiring_cache-inl.h index eb520f4dff..2723bef9f5 100644 --- a/yt/yt/core/misc/async_expiring_cache-inl.h +++ b/yt/yt/core/misc/async_expiring_cache-inl.h @@ -343,7 +343,7 @@ void TAsyncExpiringCache<TKey, TValue>::ForceRefresh(const TKey& key, const T& v } template <class TKey, class TValue> -void TAsyncExpiringCache<TKey, TValue>::PingEntry(const TKey& key) +void TAsyncExpiringCache<TKey, TValue>::Ping(const TKey& key) { auto now = NProfiling::GetCpuInstant(); auto guard = ReaderGuard(SpinLock_); @@ -359,7 +359,6 @@ void TAsyncExpiringCache<TKey, TValue>::PingEntry(const TKey& key) if (!Config()->BatchUpdate) { ScheduleEntryRefresh(entry, key, Config_->RefreshTime); } - } } diff --git a/yt/yt/core/misc/async_expiring_cache.h b/yt/yt/core/misc/async_expiring_cache.h index 913849ecd1..2031c6e31f 100644 --- a/yt/yt/core/misc/async_expiring_cache.h +++ b/yt/yt/core/misc/async_expiring_cache.h @@ -92,8 +92,8 @@ protected: virtual bool CanCacheError(const TError& error) noexcept; - //! PingEntry resets refresh timer period and behaves like successful entry update. - void PingEntry(const TKey& key); + //! Ping resets refresh timer period and behaves like successful entry update. + void Ping(const TKey& key); private: const NLogging::TLogger Logger_; |