mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
0193516bc0bbaa09f195ee88d5e3ee20b7f87457
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>
Languages
Go
84.6%
Rust
7.8%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%