mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix RUnlock of unlocked RWMutex
This commit is contained in:
parent
3c42814b58
commit
c88ea31f62
|
@ -381,7 +381,6 @@ func (ms *MasterServer) OnPeerUpdate(update *master_pb.ClusterNodeUpdate, startF
|
||||||
*onPeerUpdateDoneCn <- peerName
|
*onPeerUpdateDoneCn <- peerName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ms.onPeerUpdateLock.RUnlock()
|
|
||||||
} else if isLeader {
|
} else if isLeader {
|
||||||
if onPeerUpdateDoneCnPrev, ok := ms.onPeerUpdateDoneCns[peerName]; ok {
|
if onPeerUpdateDoneCnPrev, ok := ms.onPeerUpdateDoneCns[peerName]; ok {
|
||||||
*onPeerUpdateDoneCnPrev <- ResetRaftServerRemovalTimeMsg
|
*onPeerUpdateDoneCnPrev <- ResetRaftServerRemovalTimeMsg
|
||||||
|
|
Loading…
Reference in a new issue