pingqiuandClaude Opus 5.5 67998e5df6 storage: RED control: walstore recovery replays an older version over a newer one
claude05's ruling (B), 2026-11-16 06:47Z. On main, recovery applies
entries to the dirty map in physical range-scan order and putAt
replaces unconditionally. When the persisted head/tail predate a wrap,
the range scanned first can hold the newer version of an LBA and a
later range the older one: the older version wins, silently.
TestWALStoreRecoverLastWriterWinsAcrossScanOrder: LBA 20 written at the
high end (LSN 4), then rewritten by a batch that wraps to offset 0
(LSN 5); after recovery LBA 20 reads the LSN 4 bytes.

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