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

Comments

Projects
None yet
1 participant
@polyvertex
Member

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

This comment has been minimized.

Show comment
Hide comment
@polyvertex

polyvertex Oct 9, 2018

Member

Implemented in v2.20

Member

polyvertex commented Oct 9, 2018

Implemented in v2.20

@polyvertex polyvertex closed this Oct 9, 2018

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