rocksdb/cache
Levi Tamasi e8cb32ed67 Introduce BlobFileCache and add support for blob files to Get() (#7540)
Summary:
The patch adds blob file support to the `Get` API by extending `Version` so that
whenever a blob reference is read from a file, the blob is retrieved from the corresponding
blob file and passed back to the caller. (This is assuming the blob reference is valid
and the blob file is actually part of the given `Version`.) It also introduces a cache
of `BlobFileReader`s called `BlobFileCache` that enables sharing `BlobFileReader`s
between callers. `BlobFileCache` uses the same backing cache as `TableCache`, so
`max_open_files` (if specified) limits the total number of open (table + blob) files.

TODO: proactively open/cache blob files and pin the cache handles of the readers in the
metadata objects similarly to what `VersionBuilder::LoadTableHandlers` does for
table files.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/7540

Test Plan: `make check`

Reviewed By: riversand963

Differential Revision: D24260219

Pulled By: ltamasi

fbshipit-source-id: a8a2a4f11d3d04d6082201b52184bc4d7b0857ba
2020-10-15 13:04:47 -07:00
..
cache_bench.cc Genericize and clean up FastRange (#7436) 2020-09-28 11:35:00 -07:00
cache_helpers.h Introduce BlobFileCache and add support for blob files to Get() (#7540) 2020-10-15 13:04:47 -07:00
cache_test.cc Add more tests to ASSERT_STATUS_CHECKED (#7211) 2020-08-06 17:19:41 -07:00
cache.cc Bring the Configurable options together (#5753) 2020-09-14 17:01:01 -07:00
clock_cache.cc fix typo (#6831) 2020-05-11 14:58:25 -07:00
clock_cache.h Change RocksDB License 2017-07-15 16:11:23 -07:00
lru_cache_test.cc Add more tests to ASSERT_STATUS_CHECKED (#7211) 2020-08-06 17:19:41 -07:00
lru_cache.cc Stats for redundant insertions into block cache (#6681) 2020-04-27 13:20:27 -07:00
lru_cache.h Revert the recent cache deleter change (#6620) 2020-03-31 16:11:06 -07:00
sharded_cache.cc Revert the recent cache deleter change (#6620) 2020-03-31 16:11:06 -07:00
sharded_cache.h Revert the recent cache deleter change (#6620) 2020-03-31 16:11:06 -07:00