From c88ea31f62315bca22cb0457dca92376b032f8b2 Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Tue, 26 Jul 2022 12:57:07 +0500 Subject: [PATCH] fix RUnlock of unlocked RWMutex --- weed/server/master_server.go | 1 - 1 file changed, 1 deletion(-) diff --git a/weed/server/master_server.go b/weed/server/master_server.go index 6c0b6652b..d2e98c2a2 100644 --- a/weed/server/master_server.go +++ b/weed/server/master_server.go @@ -381,7 +381,6 @@ func (ms *MasterServer) OnPeerUpdate(update *master_pb.ClusterNodeUpdate, startF *onPeerUpdateDoneCn <- peerName } } - ms.onPeerUpdateLock.RUnlock() } else if isLeader { if onPeerUpdateDoneCnPrev, ok := ms.onPeerUpdateDoneCns[peerName]; ok { *onPeerUpdateDoneCnPrev <- ResetRaftServerRemovalTimeMsg