mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-03 10:37:35 +01:00
Normalize hashicorp raft peer ids (#8253)
* Normalize raft voter ids * 4.11 * Update raft_hashicorp.go
This commit is contained in:
1 parent
2ed5a8f65c
commit
cb9e21cdc5
5 files changed
+119
-21
No files matched your search
@@ -418,7 +418,7 @@ func (ms *MasterServer) OnPeerUpdate(update *master_pb.ClusterNodeUpdate, startF
|
||||
glog.V(4).Infof("OnPeerUpdate: %+v", update)
|
||||
|
||||
peerAddress := pb.ServerAddress(update.Address)
|
||||
peerName := string(peerAddress)
|
||||
peerName := raftServerID(peerAddress)
|
||||
if ms.Topo.HashicorpRaft.State() != hashicorpRaft.Leader {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user