follow the redirected master

fix https://github.com/chrislusf/seaweedfs/issues/1070
This commit is contained in:
Chris Lu 2019-10-09 21:00:40 -07:00
parent 15f968b054
commit 7a707617e5

View file

@ -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()