pingqiuandClaude Opus 5.5 0193516bc0 storage: bump the v3 recovery generation at the end of a recovery too (codex01 P2)
Recover bumped recoverGen before dm.clear only. A read already admitted
could capture the new generation with the old dirty entry in that
interval, see the fenced bytes, then find the same LBA/position/LSN
rewritten after the recovery: tuple and generation matched, a false WAL
integrity failure. Recover and reset now also bump it at their end (on
every path), the start+end pattern of the map proof epoch, so any overlap
changes the generation a reader compares before and after its attempt.
The outer Sync completion's equality check is unchanged in meaning.

Control (held, actual Read/Recover/Write): a read admitted before its
generation capture, released after the start bump and before the clear,
resolves the old entry, sees the fenced bytes after the recovery and the
same-tuple rewrite, and returns the new write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:03:39 -08:00
Languages
Go 84.6%
Rust 7.8%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%