fix(sqlite-native): delete metadata before chunk range#4638
Conversation
PR Review: fix(sqlite-native): delete metadata before chunk rangeOverviewA minimal 4-line swap in Correctness: The Fix Is RightThe new ordering is safer for crash/error recovery:
Metadata-first deletion is the standard "delete the pointer before the data" pattern for crash-consistent KV-backed filesystems. Parity Violation with WASM VFSPer CLAUDE.md, the Rust native VFS and the TypeScript WASM VFS must match 1:1, and the delete/truncate strategy is explicitly called out. However, the WASM VFS ( Recommendation: Either include the WASM fix ( Other Notes
Summary
The core fix is sound. The main ask is to also update the WASM VFS for parity. |
12c0baa to
61b5457
Compare
459dd12 to
d7b2c43
Compare
61b5457 to
bc7e3d7
Compare
d7b2c43 to
6c17fae
Compare
bc7e3d7 to
49fae2b
Compare
6c17fae to
a070720
Compare
49fae2b to
acf0da5
Compare
a070720 to
51a4f79
Compare
acf0da5 to
492ff0c
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: