diff options
author | robot-piglet <[email protected]> | 2025-05-12 19:20:20 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2025-05-12 19:32:34 +0300 |
commit | c057c2354db18cf0f616100db4b8e39b146d06eb (patch) | |
tree | a1907177a8c951c949473fb87a5e644a0795376b | |
parent | 4bb0038cb3db6be7746002c1849110ef1a792974 (diff) |
Intermediate changes
commit_hash:df69a29698efa22a563c39be19a206c2e2dd5ba1
-rw-r--r-- | yt/yt/core/misc/concurrent_cache-inl.h | 2 | ||||
-rw-r--r-- | yt/yt/core/misc/concurrent_cache.h | 2 | ||||
-rw-r--r-- | yt/yt/core/misc/unittests/concurrent_cache_ut.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/yt/yt/core/misc/concurrent_cache-inl.h b/yt/yt/core/misc/concurrent_cache-inl.h index 79a3c5016fa..1dec9e669b5 100644 --- a/yt/yt/core/misc/concurrent_cache-inl.h +++ b/yt/yt/core/misc/concurrent_cache-inl.h @@ -70,7 +70,7 @@ TConcurrentCache<T>::RenewTable(const TIntrusivePtr<TLookupTable>& head, size_t template <class T> TConcurrentCache<T>::TConcurrentCache(size_t capacity, IMemoryUsageTrackerPtr tracker) - : MemoryUsageTracker_(tracker) + : MemoryUsageTracker_(std::move(tracker)) , Capacity_(capacity) , Head_(New<TLookupTable>( capacity, diff --git a/yt/yt/core/misc/concurrent_cache.h b/yt/yt/core/misc/concurrent_cache.h index cb5356f544f..47e127df7bb 100644 --- a/yt/yt/core/misc/concurrent_cache.h +++ b/yt/yt/core/misc/concurrent_cache.h @@ -23,7 +23,7 @@ private: public: using TValuePtr = TIntrusivePtr<T>; - explicit TConcurrentCache(size_t maxElementCount, IMemoryUsageTrackerPtr tracker = nullptr); + TConcurrentCache(size_t maxElementCount, IMemoryUsageTrackerPtr tracker); ~TConcurrentCache(); diff --git a/yt/yt/core/misc/unittests/concurrent_cache_ut.cpp b/yt/yt/core/misc/unittests/concurrent_cache_ut.cpp index df341081cf5..597c4f2f057 100644 --- a/yt/yt/core/misc/unittests/concurrent_cache_ut.cpp +++ b/yt/yt/core/misc/unittests/concurrent_cache_ut.cpp @@ -82,7 +82,7 @@ TEST_P(TConcurrentCacheTest, Stress) THazardPtrReclaimOnContextSwitchGuard flushGuard; TSlabAllocator allocator; - TConcurrentCache<TElement> concurrentCache(tableSize); + TConcurrentCache<TElement> concurrentCache(tableSize, /*memoryUsageTracker*/ nullptr); auto threadPool = CreateThreadPool(threadCount, "Workers"); std::vector<TFuture<size_t>> asyncResults; |