diff options
| -rw-r--r-- | yt/yt/core/misc/concurrent_cache-inl.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/yt/yt/core/misc/concurrent_cache-inl.h b/yt/yt/core/misc/concurrent_cache-inl.h index 084580947ad..aaf07b0825f 100644 --- a/yt/yt/core/misc/concurrent_cache-inl.h +++ b/yt/yt/core/misc/concurrent_cache-inl.h @@ -48,10 +48,9 @@ TConcurrentCache<T>::RenewTable(const TIntrusivePtr<TLookupTable>& head, size_t } // Rotate lookup table. - auto memoryUsageGuard = TMemoryUsageTrackerGuard::TryAcquire( + auto memoryUsageGuard = TMemoryUsageTrackerGuard::Acquire( MemoryUsageTracker_, - TLookupTable::GetByteSize(capacity)) - .ValueOrThrow(); + TLookupTable::GetByteSize(capacity)); auto newHead = New<TLookupTable>(capacity, std::move(memoryUsageGuard)); newHead->Next = head; |
