Skip to content

fix(wal): increment next_segment_id before creating a new segment#1

Open
mangerle wants to merge 1 commit into
restsend:mainfrom
mangerle:main
Open

fix(wal): increment next_segment_id before creating a new segment#1
mangerle wants to merge 1 commit into
restsend:mainfrom
mangerle:main

Conversation

@mangerle

Copy link
Copy Markdown
  • Snapshot and increment next_segment_id before creating a new segment
  • Unlikely to trigger in practice, but the lazy-init path leaves a latent bug that should be fixed
  • For consistency with the rollover logic below, consider the trade-off: if segment creation fails, next_segment_id should not be incremented

- Snapshot and increment next_segment_id before creating a new segment
- Unlikely to trigger in practice, but the lazy-init path leaves a latent
  bug that should be fixed
- For consistency with the rollover logic below, consider the trade-off:
  if segment creation fails, next_segment_id should not be incremented
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.

1 participant