mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
c9790ac474292d06043df3c07384af1a3d131204
DESIGN r15 sections 4, 5 and 5.1 (f2122d66), PLAN row 3 (b870a569). Dark: used by no production path yet; the v2 checkpoint path is unchanged (retired in row 14a). Wiring into the v3 store follows rows 4/5. - descriptor_v3.go: publish takes WALStore.mu (snapshot only) then descMu, releases the store lock before slot I/O, and writes the fallback slot with slotGen+1 through the syncFile leaf. It rebases onto the authoritative descriptor, max-merges W and the checkpoint, refuses identity/geometry/nonce changes, tail regression, map root changes without a higher generation and BASE edges outside 8.5, validates the whole slot, and rechecks the sticky fault at the success boundary. reuseFloor is min of both tails within one nonce (none across nonces); rolloverIfPinned republishes unchanged when the fallback pins reuse. - Tests: alternation and reopen selection, monotonic merge, 40 concurrent publishers, a lock-order recorder, sticky fsync and success-boundary refusals, full-ring rollover and its failure, mixed nonces, BASE edges. - invariants.md: INV-WAL-V3-PUBLISH-001 (STUB until activation). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.8%
Rust
7.6%
Shell
2.7%
templ
1.5%
Java
0.9%
Other
2.3%