Skip to content

Use O_SYNC for filestore meta files when SyncAlways is enabled#5729

Merged
derekcollison merged 2 commits intomainfrom
neil/osync
Jul 31, 2024
Merged

Use O_SYNC for filestore meta files when SyncAlways is enabled#5729
derekcollison merged 2 commits intomainfrom
neil/osync

Conversation

@neilalexander
Copy link
Copy Markdown
Member

@neilalexander neilalexander commented Jul 31, 2024

This will use O_SYNC when writing meta.inf, meta.sum and meta.key files for both streams and consumers when the SyncAlways filestore option is enabled. It will also do the same when writing the consumer state file, or rewriting it if we are converting between ciphers.

Signed-off-by: Neil Twigg neil@nats.io

@neilalexander neilalexander requested a review from a team as a code owner July 31, 2024 15:45
Signed-off-by: Neil Twigg <neil@nats.io>
@neilalexander neilalexander changed the title Optionally use O_SYNC when writing some stream/consumer meta files Use O_SYNC for filestore meta files when SyncAlways is enabled Jul 31, 2024
…ed encryption keys

Signed-off-by: Neil Twigg <neil@nats.io>
Copy link
Copy Markdown
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@derekcollison derekcollison merged commit 13f2738 into main Jul 31, 2024
@derekcollison derekcollison deleted the neil/osync branch July 31, 2024 20:53
neilalexander added a commit that referenced this pull request Aug 6, 2024
Includes the following:

- #5690
- #5725
- #5729
- #5734
- #5735
- #5736
- #5743
- #5744
- #5751
- #5755
- #5754
- #5732
- #5750
- #5756

The following were reverted before this PR:
- #5602

Signed-off-by: Neil Twigg <neil@nats.io>
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.

2 participants