rocksdb/cache
Eli Pozniansky 74fb7f0ba5 Cleaned up and simplified LRU cache implementation (#5579)
Summary:
The 'refs' field in LRUHandle now counts only external references, since anyway we already have the IN_CACHE flag. This simplifies reference accounting logic a bit. Also cleaned up few asserts code as well as the comments - to be more readable.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5579

Differential Revision: D16286747

Pulled By: elipoz

fbshipit-source-id: 7186d88f80f512ce584d0a303437494b5cbefd7f
2019-07-16 19:17:45 -07:00
..
cache_bench.cc simplify include directive involving inttypes (#5402) 2019-06-06 13:56:07 -07:00
cache_test.cc Cleaned up and simplified LRU cache implementation (#5579) 2019-07-16 19:17:45 -07:00
clock_cache.cc Add final annotations to some cache functions (#5156) 2019-04-05 16:08:01 -07:00
clock_cache.h Change RocksDB License 2017-07-15 16:11:23 -07:00
lru_cache_test.cc Move test related files under util/ to test_util/ (#5377) 2019-05-30 11:25:51 -07:00
lru_cache.cc Cleaned up and simplified LRU cache implementation (#5579) 2019-07-16 19:17:45 -07:00
lru_cache.h Cleaned up and simplified LRU cache implementation (#5579) 2019-07-16 19:17:45 -07:00
sharded_cache.cc simplify include directive involving inttypes (#5402) 2019-06-06 13:56:07 -07:00
sharded_cache.h Export Cache::GetCharge (#5476) 2019-06-18 17:35:41 -07:00