pingqiuandClaude Opus 5.5 042a201651 fix(storage): bound the v3 owned-map file by reusing unreferenced extents
New map pages and roots go into 4 KiB extents that no live root
references, lowest first, instead of always being appended. Live roots
are the roots named by the two descriptor slots and every prepared
candidate not yet published or superseded. After each publication the
publisher reports both slots; an extent is released only once neither
slot's root references it. New pages and the root are fsynced before a
publication names them. The free tail is truncated when the file
exceeds 4x the live bytes. The on-disk format is unchanged.

WALStore.ChunkMapStatsV3 reports the file bytes, live bytes and
truncations.

Fixes #236.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 02:18:28 -08:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%