Skip to content

Fix file size tracking#321

Merged
rhashimoto merged 2 commits into
masterfrom
fix-file-size-tracking
Apr 22, 2026
Merged

Fix file size tracking#321
rhashimoto merged 2 commits into
masterfrom
fix-file-size-tracking

Conversation

@rhashimoto
Copy link
Copy Markdown
Owner

Fix #320

Copy link
Copy Markdown
Contributor

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

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 refactors the WriteAhead class to handle database file size updates during the commit phase and improves lock management by tracking encoded lock names. A critical issue was identified in the transaction commit logic, which incorrectly triggers a rollback if page 1 is not present in the transaction; this behavior would break standard updates that do not modify the database header.

Comment thread src/examples/WriteAhead.js
@rhashimoto rhashimoto merged commit 391db98 into master Apr 22, 2026
1 check passed
@rhashimoto rhashimoto deleted the fix-file-size-tracking branch April 22, 2026 17:29
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.

Database Disk Image Malformed (WriteAheadVFS, FTS5, GEOPOLY)

2 participants