mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
de525e8fe4
Summary: There is a race in here. We read the config, then mutate it, then put the new config in place. However, if something else comes and mutates the config between the time where we read it and write it again, we'll clobber its changes. Concretely, if you're running lots of `eden clone` or `eden rm` concurrently, then the current mechanism will sometimes "forget" some directories or add back directories you removed, which will e.g. break `eden list` (and cause those commands to sometimes fail as well). This diff fixes that by wrapping the critical section with a file lock. Reviewed By: chadaustin, xavierd Differential Revision: D32251727 fbshipit-source-id: 9eee57c7a824286bb4f0e7911e5ccd9d769c6daa |
||
---|---|---|
.. | ||
eden-config.cpp.in | ||
eden-config.h.in | ||
eden-config.py.in | ||
EdenCompilerSettings.cmake | ||
EdenConfigChecks.cmake | ||
FindLibGit2.cmake | ||
FindLZ4.cmake | ||
FindPrjfs.cmake | ||
FindSELinux.cmake | ||
FindSqlite3.cmake | ||
RustStaticLibrary.cmake |