fix(sqlite-vfs): use delete range for truncate cleanup#4636
Conversation
Review: fix(sqlite-vfs): use delete range for truncate cleanupThe changes look correct and consistent. Both the Rust and TypeScript VFS truncate implementations are now in sync, matching the CLAUDE.md parity requirement. What this does The truncate path previously iterated chunk indices from Correctness Parity with CLAUDE.md requirements: the spec explicitly says both implementations must use Edge case Strictly more thorough: the old code deleted chunks only in Atomic: the old batch-delete loop was not atomic across batches when the chunk count exceeded
Minor observations
Summary The change is correct, efficient, and brings both VFS implementations in line with documented requirements. Approving with the minor note about test coverage. |
6eac78f to
4e380c8
Compare
4303e83 to
60882a2
Compare
4e380c8 to
7fbbf37
Compare
5f174d0 to
c75356d
Compare
7fbbf37 to
fe8cf4f
Compare
93f25d2 to
e993f2c
Compare
455165f to
b488e7c
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: