mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
90ecf57c28289653addaf3cf096a576e41e580af
Review fold (P2): SetReplicationVolume replays a retained RF2 fact before SetSelfFence installs the ingress gate; with no self fence the host could install the peer set, adopt and emit readiness. The rule now lives in the host config (RF1Only, from hostConfig at construction): every fact with replica slots, primary with peers or supporting replica, is refused before UpdateReplicaSet, adoption or the ready marker, and latched as a role admission failure; an RF1 fact clears it. The ingress gate stays as the second layer. Tests: the start schedule (blocked readiness, stored RF2 fact, replay with no self fence), supporting refusal, RF1 recovery, unset control; ingress refusal with dual-lane on both ports, classified by ingressPortReleased; hostConfig wiring. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.6%
Rust
7.8%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%