Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure local disk directory store does atomic put #14

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

wkalt
Copy link
Owner

@wkalt wkalt commented Apr 12, 2024

Prior to this commit, the directory storage provider did a write straight to final storage, which would result in a partial file if interrupted. Now we write to a tmpfile and do an atomic rename to the final location.

On initialization of a directory store, the root directory is walked and any orphaned tmpfiles are deleted.

Prior to this commit, the directory storage provider did a write
straight to final storage, which would result in a partial file if
interrupted. Now we write to a tmpfile and do an atomic rename to the
final location.

On initialization of a directory store, the root directory is walked and
any orphaned tmpfiles are deleted.
@wkalt wkalt force-pushed the task/fix-localdisk-atomic-storage branch from 927f87f to 117ee7d Compare April 12, 2024 15:14
@wkalt wkalt merged commit 55abe62 into main Apr 12, 2024
2 checks passed
@wkalt wkalt mentioned this pull request Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant