Skip to content

Fix invalid file header handling.#324

Closed
rhashimoto wants to merge 1 commit into
masterfrom
fix-atomic-wal-file-swap
Closed

Fix invalid file header handling.#324
rhashimoto wants to merge 1 commit into
masterfrom
fix-atomic-wal-file-swap

Conversation

@rhashimoto

Copy link
Copy Markdown
Owner

No description provided.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request modifies the WriteAhead class to improve the handling of WAL file transitions. Specifically, #followFileChange now returns a boolean indicating success, and the logic for handling FRAME_TYPE_END frames has been updated to return null if the file transition fails. Feedback suggests that the new error handling at line 814 is redundant, as the necessary validation is already performed within #readFrame, which would have already caused the process to return null before reaching this block.

Comment thread src/examples/WriteAhead.js
@rhashimoto rhashimoto closed this Apr 25, 2026
@rhashimoto rhashimoto deleted the fix-atomic-wal-file-swap branch April 25, 2026 15:52
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