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

put temporary data file in the same directory as the data file itself #495

Closed
wants to merge 1 commit into from

Conversation

lilydjwg
Copy link
Contributor

This should make shutil.move use rename, which is atomic, avoiding
losing data when interweaving writes happen.

This will close #358 and should fix #391.

This should make shutil.move use rename, which is atomic, avoiding
losing data when interweaving writes happen.

This will close wting#358.
@lilydjwg lilydjwg changed the title put temporary data file in the same director as the data file itself put temporary data file in the same directory as the data file itself Aug 26, 2017
@wting wting force-pushed the master branch 10 times, most recently from 6da975f to 8eace44 Compare September 7, 2018 06:27
@lilydjwg lilydjwg closed this Sep 8, 2018
@wting
Copy link
Owner

wting commented Sep 9, 2018

Oops, I missed this PR.

I reverted my patch and merged this PR into 8fffbad so that credit is properly attributed.

Thanks for opening up this PR and cleaning up afterwards!

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.

Database entry(ies) regularly wiped move_file may cause data loss
2 participants