mirror of
https://github.com/facebook/sapling.git
synced 2024-10-13 02:07:31 +03:00
a4322ca904
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 |
||
---|---|---|
.. | ||
benches | ||
src | ||
Cargo.toml |