mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
a0b6a5da17bd4ceb82245ab508ad1faea0b30c44
A mutex around all of applyFact deadlocked facts applied concurrently by design (a replay worker beside the stream, a fact applied from inside another's hook). supportMu now spans only the completion of a supporting assignment, in the fact path after its role call released selfFenceMu and in the retry (supportMu, then selfFenceMu), so an older epoch's completion never lands after a newer one's. The retry completes the pending assignment only while the host still wants the replica role at its epoch; a newer fact moves that epoch or replaces the pending entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.7%
Rust
7.7%
Shell
2.7%
templ
1.5%
Java
1%
Other
2.1%