mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
66cef07cf9
Summary: Add a way to explicitly `fsync` data to reduce changes of data corruption in case of hard reboots. If `fsync` is set on a `Log`, it sets `fsync` recursively on its indexes and checksum tables. If frequent `fsync` is an issue, it might be possible to only `fsync` the source of truth (log and meta) and have other logic to rebuild indexes on demand. `fsync` on btrfs seems to be relatively cheap (comparing to ext4), so maybe this is fine for btrfs users. Reviewed By: markbt Differential Revision: D16926659 fbshipit-source-id: a9de2fa352f607fe6f0b9d36047323862770f2e6 |
||
---|---|---|
.. | ||
benches | ||
src | ||
Cargo.toml |