sapling/eden/fs
Adam Simpkins 07902b6a3c improve the "gc" implementation for RocksDB
Summary:
Change the `eden gc` implementation to use RocksDB's `DeleteFilesInRange()`
function, as well as its new-ish `DeleteRange()` method.

This makes the garbage collection much faster, and also require much less free
disk space than previously.

`DeleteFilesInRange()` asks RocksDB to simply delete all SST files from disk
if they only contain keys in the specified range.  Since the range we specify
should include all keys in the DB this should simply drop all SST files for
this column family.

We also call `DeleteRange()` after this, just in case.  This API is relatively
recent, and writes a single tombstone saying that the specified range has been
deleted.

Reviewed By: wez

Differential Revision: D14910345

fbshipit-source-id: c76bdc1c8e07cb2def66673ea892e7f455c9dc7a
2019-04-15 12:33:09 -07:00
..
benchharness standardize some of the benchmark infrastructure 2018-11-13 15:27:50 -08:00
config Use FileUtil APIs on Windows 2019-03-18 10:00:32 -07:00
fuse Encapsulate EdenStats 2019-04-14 20:45:16 -07:00
inodes Rename ThreadLocalEdenStats to EdenStats 2019-04-14 20:45:16 -07:00
journal Add assorted missing includes 2019-03-07 00:13:47 -08:00
model fix a size_t format specifier to snprintf() 2019-04-10 15:41:35 -07:00
rocksdb eden: cmake: add missing folly dep for the rocksdb component 2019-03-29 15:02:05 -07:00
service Encapsulate EdenStats 2019-04-14 20:45:16 -07:00
sqlite avoid leaking the sqlite3 db if we fail to open it 2018-06-20 16:36:22 -07:00
store improve the "gc" implementation for RocksDB 2019-04-15 12:33:09 -07:00
takeover AsyncServerSocket::AcceptCallback::connectionAccepted to NetworkSocket (attempt #2) 2019-04-10 15:01:32 -07:00
testharness Synchronize mount+unmount 0/4: Add features to MountDelegate test helpers 2019-03-21 13:51:15 -07:00
tracing Encapsulate EdenStats 2019-04-14 20:45:16 -07:00
utils Add ServiceAddress to utils 2019-04-12 11:22:25 -07:00
CMakeLists.txt eden: add simple install rule for the cmake build 2019-03-29 15:02:04 -07:00