mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
5244dc366394bffa8c4eef359b873b47d121a225
The fact's own successful role call released selfFenceMu before it completed the supporting assignment, and facts run concurrently by design, so a newer self-primary or excluding fact could cross: the old admission then cleared that fact's primary watchdog or emitted an old marker. The direct path and the retry now both complete through completeSupportingIfCurrentLocked, which checks and completes without releasing selfFenceMu: only while the desired role is still replica at that epoch and no newer fact was seen. A newer fact records its epoch under the lock before it acts, so it waits for the completion or supersedes it. 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%