Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

fix: handle concurrent writes on windows #28

Merged
merged 1 commit into from
Sep 9, 2019

Conversation

achingbrain
Copy link
Member

Windows can return EPERM errors when trying to rename temp files to files that already exist. In our case a file with a given name will always have the same content so if it's created while we are trying to also create it, we can reasonably assume it's ok to use.

If we want to be more thorough we could hash the contents of the new file.

Windows can return EPERM errors when trying to rename temp files to
files that already exist. In our case a file with a given name will
always have the same content so if it's created while we are trying
to also create it, we can reasonably assume it's ok to use.

If we want to be more thorough we could hash the contents of the new
file.
@achingbrain achingbrain merged commit 4c38a41 into master Sep 9, 2019
@achingbrain achingbrain deleted the support-concurrent-writes-on-windows branch September 9, 2019 10:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants