sapling/eden/scm/lib/indexedlog
Jun Wu 0311047b05 indexedlog: add an API to manually clean up rotated logs
Summary:
Previously rotation only happens at flush time and file deletion is a best
effort (it might fail on Windows). For use-cases that are sensitive about
space usage that's suboptimal. This diff adds an API to remove old files
manually so high level logic can choose to clean up old files after open().

Reviewed By: xavierd

Differential Revision: D25894283

fbshipit-source-id: fbffff426544b39349ddf3537d46954d3cab5d12
2021-01-12 21:38:03 -08:00
..
benches indexedlog: fix a typo in benchmarks 2020-03-18 09:30:31 -07:00
src indexedlog: add an API to manually clean up rotated logs 2021-01-12 21:38:03 -08:00
tests Prepare for rustfmt 2.0 2020-09-07 20:47:59 -07:00
Cargo.toml indexedlog: use dev-logger 2020-03-10 14:16:39 -07:00