From 7a707617e58e3343009b40d51dc56eaa54ac60ac Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 9 Oct 2019 21:00:40 -0700 Subject: [PATCH] follow the redirected master fix https://github.com/chrislusf/seaweedfs/issues/1070 --- weed/wdclient/masterclient.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/weed/wdclient/masterclient.go b/weed/wdclient/masterclient.go index da867696d..6ba668ade 100644 --- a/weed/wdclient/masterclient.go +++ b/weed/wdclient/masterclient.go @@ -79,10 +79,8 @@ func (mc *MasterClient) tryConnectToMaster(master string) (nextHintedLeader stri return err } - if mc.currentMaster == "" { - glog.V(1).Infof("%s Connected to %v", mc.name, master) - mc.currentMaster = master - } + glog.V(1).Infof("%s Connected to %v", mc.name, master) + mc.currentMaster = master for { volumeLocation, err := stream.Recv()