From c8552d8c636c4fb5f8094df7b9065ae6e99fbb10 Mon Sep 17 00:00:00 2001 From: Zdenek Korcak Date: Fri, 7 Apr 2023 18:28:19 -0700 Subject: [PATCH] fix bad implementation of ShardedCache::GetOccupancyCount (#11325) Summary: copy paste typo Pull Request resolved: https://github.com/facebook/rocksdb/pull/11325 Reviewed By: hx235 Differential Revision: D44378512 Pulled By: ajkr fbshipit-source-id: 509ed2697c06eed975914359ece0459a0ea40312 --- cache/sharded_cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/sharded_cache.h b/cache/sharded_cache.h index c8eb58aad..04eaa5318 100644 --- a/cache/sharded_cache.h +++ b/cache/sharded_cache.h @@ -226,7 +226,7 @@ class ShardedCache : public ShardedCacheBase { return SumOverShards2(&CacheShard::GetPinnedUsage); } size_t GetOccupancyCount() const override { - return SumOverShards2(&CacheShard::GetPinnedUsage); + return SumOverShards2(&CacheShard::GetOccupancyCount); } size_t GetTableAddressCount() const override { return SumOverShards2(&CacheShard::GetTableAddressCount);