Closed jonahgao closed 2 weeks ago
@ajkr has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@jonahgao has updated the pull request. You must reimport the pull request before landing.
@jonahgao has updated the pull request. You must reimport the pull request before landing.
@ajkr has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@ajkr merged this pull request in facebook/rocksdb@9f95aa82699b63073db1f843fe04c311035c0bd2.
Thank you @ajkr for reviewing and improving the code.
Fix issue https://github.com/facebook/rocksdb/issues/12687.
A block cache may be shared by multiple column families. Therefore, when getting the aggregated property of the block cache, we need to deduplicate by instances of the block cache, meaning the same instance should only be counted once.