mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
9ba7f7f54b79e979d222beb247debcaca311e1d7
Publisher: the reset publication mode of the single publisher (a new nonzero nonce, an empty cursor space, ordinary rules otherwise), ported onto the row 7 publication core; step 2 into one slot, step 3 into the other, a step-3 failure latches. Store: WALStore.resetIncarnationV3 quiesces (captureMu exclusive -> lifecycleMu -> syncMu -> s.mu), refuses with ErrResetNotPreserved and no write unless the dirty map is empty and CheckpointLSN >= appended == acknowledged W, publishes both slots under a fresh random nonce at cursor 0, recreates the WAL writer, bumps the recovery generation and invalidates the map proof epoch. An open across a half-published reset binds no writer; Recover's head publication completes the other slot and creates it. Not TLC-cleared: nothing in production calls it until the reset model (r4.5) passes. 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%