mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
e69c54de174b2b7d6ba448dae27c1999694d8a65
codex03's row 12a retirement-timing seam, store half: a completed BASE must not retire while the provider's fresh-from-HEAD marker could still make a reopen seed from HEAD over the completed local bytes. - CommitChunkAttachV3(commit) runs the provider's commit (the marker removal and directory fsync; no store re-entry) under installMu exclusive, and only when it succeeds records this open's durable attach and lifts the retirement deferral of an installed volume. A failed commit changes nothing. - OwnerChunkAttachDurableV3 reports that flag (atomic); Defer resets it at every managed open; a begin re-arms the gate but keeps the flag. New edge: the provider's attachMu -> installMu; the store takes no provider lock. Not a v3 store: commit only. Control: the commit runs under installMu exclusive; a failed commit sets no flag and the volume stays installed; a successful one retires it on the next publication; Defer resets the flag. Mutants: lifting on a failed commit, not recording the flag, committing outside installMu. 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%