sapling/lib/indexedlog
Jun Wu a4322ca904 logrotate: make writable_log private
Summary:
The `writable_log` API can be misused to "flush" a Log, bypassing the check
about whether it should be rotated or not.

The real need of `writable_log` is to get accesses to indexes on the "writable"
(or "latest") log. Therefore let's just expose that instead.

Practically, the only use case of querying the index on the "latest" log is to
make sure dependent content are written to a same Log. That also requires a
"flush_filter" to be provided. Therefore add an assertion about it.

Differential Revision: D14866022

fbshipit-source-id: f6c07a498597b6f0f07d7cc3130e9033ba8b9be4
2019-04-10 19:50:01 -07:00
..
benches indexedlog: migrate from tempdir to tempfile 2019-04-01 17:16:18 -07:00
src logrotate: make writable_log private 2019-04-10 19:50:01 -07:00
Cargo.toml indexedlog: use failure for error handling 2019-04-05 12:17:28 -07:00