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

Use atomic writes for the storage file #1014

Merged
merged 2 commits into from
Dec 23, 2024
Merged

Use atomic writes for the storage file #1014

merged 2 commits into from
Dec 23, 2024

Conversation

marcelveldt
Copy link
Collaborator

@marcelveldt marcelveldt commented Dec 23, 2024

Prevent our persistent storage file get corrupted if writing fails or power is cut during writing.
This is step 1 because a similar approach is also needed for the sdk's json file which contains the fabric (cryptographic) data.

Related to #977

Co-authored-by: Stefan Agner <stefan@agner.ch>
@marcelveldt marcelveldt added the bugfix Pull request that fixes a (known) issue/bug label Dec 23, 2024
@marcelveldt marcelveldt merged commit 8cdce62 into main Dec 23, 2024
4 of 5 checks passed
@marcelveldt marcelveldt deleted the storage-fixes branch December 23, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Pull request that fixes a (known) issue/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants