mirror of
https://github.com/facebook/sapling.git
synced 2025-01-08 22:56:44 +03:00
07902b6a3c
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 |
||
---|---|---|
.. | ||
benchharness | ||
config | ||
fuse | ||
inodes | ||
journal | ||
model | ||
rocksdb | ||
service | ||
sqlite | ||
store | ||
takeover | ||
testharness | ||
tracing | ||
utils | ||
CMakeLists.txt |