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

fix: handle concurrent writes on windows#28

Merged
achingbrain merged 1 commit intomasterfrom
support-concurrent-writes-on-windows
Sep 9, 2019
Merged

fix: handle concurrent writes on windows#28
achingbrain merged 1 commit intomasterfrom
support-concurrent-writes-on-windows

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