rocksdb/utilities/simulator_cache
Andrew Kryczka fe395fb63d Allow incrementing refcount on cache handles
Summary:
Previously the only way to increment a handle's refcount was to invoke Lookup(), which (1) did hash table lookup to get cache handle, (2) incremented that handle's refcount. For a future DeleteRange optimization, I added a function, Ref(), for when the caller already has a cache handle and only needs to do (2).
Closes https://github.com/facebook/rocksdb/pull/1761

Differential Revision: D4397114

Pulled By: ajkr

fbshipit-source-id: 9addbe5
2017-01-10 16:54:20 -08:00
..
sim_cache_test.cc add sim_cache stats to Statistics 2016-08-10 17:42:24 -07:00
sim_cache.cc Allow incrementing refcount on cache handles 2017-01-10 16:54:20 -08:00