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

release-20.1: pkg/storage: sync file in SafeWriteToFile #64498

Merged

Conversation

jbowens
Copy link
Collaborator

@jbowens jbowens commented Apr 30, 2021

Backport of #64385.


Previously, storage.SafeWriteToFile did not guarantee that the file it
wrote was synced to the storage media.

Release note (bug fix): Fix a bug where encryption-at-rest metadata was
not synced and might become corrupted during a hard reset.

Previously, `storage.SafeWriteToFile` did not guarantee that the file it
wrote was synced to the storage media.

Release note (bug fix): Fix a bug where encryption-at-rest metadata was
not synced and might become corrupted during a hard reset.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@petermattis petermattis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

Copy link
Collaborator Author

@jbowens jbowens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TFTR!

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@jbowens jbowens merged commit ae2ef96 into cockroachdb:release-20.1 May 3, 2021
@jbowens jbowens deleted the jackson/release-20.1-sync branch May 3, 2021 17:34
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

3 participants