sapling/eden/fs/store
Adam Simpkins 482c2d8dfd change how we compute sizes of the RocksDB column families
Summary:
Update `RocksDbLocalStore::getApproximateSize()` to use `DB::GetIntProperty()`
rather than `DB::GetApproximateSizes()`.

The `GetIntProperty()` call reports properties about the overall column
family, as opposed to `GetApproximateSizes()` which supports querying size
information for specific key ranges.  We always want data about the full
table, so the `GetIntProperty()` call seems to make more sense for us.

Also change the code to include both the SST file size (which we were querying
before) and the memtable size (which was not included before).  The
`GetApproximateSizes()` call allow this to be queried too, but using
`GetIntProperty()` still seems better since we don't care about a specific key
range.

Reviewed By: wez

Differential Revision: D15798506

fbshipit-source-id: 86d087876d838c0ff4ae517ccac2e8b8bf31e304
2019-06-14 18:14:43 -07:00
..
git eden: cmake fixup include directories and deps 2019-03-28 20:57:17 -07:00
hg fix some dependencies in the CMake files 2019-06-11 16:30:51 -07:00
mononoke Migrate to optional_field_ref Thrift API 2019-06-13 08:54:34 -07:00
test Get blob size from local store 2019-06-12 17:48:49 -07:00
BackingStore.h remove fallback for correcting empty files 2018-10-22 20:27:26 -07:00
BlobAccess.cpp add a BlobAccess API for stateless blob reading 2018-11-26 10:46:51 -08:00
BlobAccess.h add a BlobAccess API for stateless blob reading 2018-11-26 10:46:51 -08:00
BlobCache.cpp only evict when interest handle is dropped if blob wasn't reloaded 2018-12-10 19:30:28 -08:00
BlobCache.h only evict when interest handle is dropped if blob wasn't reloaded 2018-12-10 19:30:28 -08:00
BlobMetadata.h run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
CMakeLists.txt fix some dependencies in the CMake files 2019-06-11 16:30:51 -07:00
Diff.cpp Future<T>::then Future<T>::then() -> Future<T>::thenValue or thenTry. 2018-09-14 17:10:57 -07:00
Diff.h add a function for diffing source control commits 2018-03-20 16:47:12 -07:00
eden_store_util.cpp add an option to open RocksDbLocalStore in read-only mode 2019-05-20 14:13:59 -07:00
EmptyBackingStore.cpp run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
EmptyBackingStore.h run clang-format across all C++ files 2017-11-03 16:02:03 -07:00
IObjectStore.h clang-format 2018-10-02 10:07:38 -07:00
KeySpaces.h add a name field to LocalStore::KeySpaceRecord 2019-05-15 12:19:20 -07:00
LocalStore.cpp Get blob size from local store 2019-06-12 17:48:49 -07:00
LocalStore.h Get blob size from local store 2019-06-12 17:48:49 -07:00
MemoryLocalStore.cpp remove the config parameter from LocalStore 2019-05-15 12:19:20 -07:00
MemoryLocalStore.h remove the config parameter from LocalStore 2019-05-15 12:19:20 -07:00
ObjectStore.cpp Renamed functions to refer to blobs 2019-06-12 17:48:49 -07:00
ObjectStore.h Renamed functions to refer to blobs 2019-06-12 17:48:49 -07:00
RocksDbLocalStore.cpp change how we compute sizes of the RocksDB column families 2019-06-14 18:14:43 -07:00
RocksDbLocalStore.h add an option to open RocksDbLocalStore in read-only mode 2019-05-20 14:13:59 -07:00
SerializedBlobMetadata.cpp move SerializedBlobMetadata into its own file 2018-10-31 11:50:39 -07:00
SerializedBlobMetadata.h move SerializedBlobMetadata into its own file 2018-10-31 11:50:39 -07:00
SqliteLocalStore.cpp remove the config parameter from LocalStore 2019-05-15 12:19:20 -07:00
SqliteLocalStore.h remove the config parameter from LocalStore 2019-05-15 12:19:20 -07:00
StoreResult.cpp Enabled additional compiler warnings in Eden. 2018-06-01 11:39:01 -07:00
StoreResult.h Enabled additional compiler warnings in Eden. 2018-06-01 11:39:01 -07:00