diff --git a/cache/sharded_cache.h b/cache/sharded_cache.h index c8eb58aad5..04eaa5318e 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);