mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
5c66d921c6
Summary: This diff aims to solve `atomic_write` issues on Windows. Namely: - `tempfile` left overs if temp files are not deleted on Drop. - `tempfile` does unnecessary `chmod`. - For mmap-ed files, it has to be deleted before `atomic_write`, causing reader to have a chance to see inconsistent data. This diff solves the above issues by: - Use extra GC to clean up older files. Do not realy on successful `Drop`. - Do not use `tempfile` and do not set permissions. - Use a symlink so the symlink can still be atomic-replaced while the real content is being mmaped. Reviewed By: DurhamG Differential Revision: D22225039 fbshipit-source-id: d45bb198a53f8beeef71798cdb9ae57f9b4b8cd3 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |