mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
09d1663f13125195fa4960d57e9cb0b511273c50
Plan row 9: SeedChunkFrontier uses the checkpoint's map/metadata barrier and the sole descriptor publication. The mapped v3 checkpoint body is extracted into publishCheckpointV3 (metadata and chunk barriers, owned-map candidate outside every lock, the sole slot publisher under syncMu with the recovery-lifetime check), which the flusher's checkpoint and the seed both call. The v3 seed fsyncs the data, then raises W and CheckpointLSN to the inherited frontier in that one publication, and moves the volatile frontier only after it; a failure publishes nothing and a retry works. It refuses local writes, an install, an attached chunk layer and a store without an owned map, writing nothing. The dark provider still refuses a HEAD restore onto a v3 store (errV3RestoreNotYet in PrepareRestore, before any seed or claim) until the v3 FreshFromHead restore on the owned map lands (codex03), so codex03's TestDurableProviderV3_UnwiredHEADRestoreRefusesBeforeClaim stays as is. WALStore.FormatV3 reports the dark format. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.5%
Rust
7.9%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%