avoid race conditions for OnPeerUpdate (#3525)
https://github.com/seaweedfs/seaweedfs/issues/3524
This commit is contained in:
committed by
GitHub
parent
4f7a1f67cd
commit
e90ab4ac60
@@ -116,7 +116,7 @@ func NewMasterServer(r *mux.Router, option *MasterOption, peers map[string]pb.Se
|
||||
}
|
||||
ms.boundedLeaderChan = make(chan int, 16)
|
||||
|
||||
ms.MasterClient.OnPeerUpdate = ms.OnPeerUpdate
|
||||
ms.MasterClient.SetOnPeerUpdateFn(ms.OnPeerUpdate)
|
||||
|
||||
seq := ms.createSequencer(option)
|
||||
if nil == seq {
|
||||
|
||||
Reference in New Issue
Block a user