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

Catalog and History file data corruption #321

Closed
polyvertex opened this issue Sep 25, 2018 · 1 comment
Closed

Catalog and History file data corruption #321

polyvertex opened this issue Sep 25, 2018 · 1 comment

Comments

@polyvertex
Copy link
Member

@polyvertex polyvertex commented Sep 25, 2018

When Keypirinha writes the .catalog or .history file, it should use the "swap method" by first creating a file with a different name, generating its content and fully writing it. Only then, the original file is overwritten with the new content (i.e. move operation).

This limits the risk of having corrupted data in case writing is interrupted.

Ref: initial chat

@polyvertex
Copy link
Member Author

@polyvertex polyvertex commented Oct 9, 2018

Implemented in v2.20

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant