Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix windows lock race: Lock exclusive after all try lock errors (#2800)
We don't know what kind of error the OS gives us on `try_lock_exclusive` with an already locked file, so we assume all those errors are an already locked file and call `lock_exclusive`. For example the windows error: ``` Os { code: 33, kind: Uncategorized, message: "The process cannot access the file because another process has locked a portion of the file.", } ``` Fixes #2767
- Loading branch information