follow the redirected master
fix https://github.com/chrislusf/seaweedfs/issues/1070
This commit is contained in:
@@ -79,10 +79,8 @@ func (mc *MasterClient) tryConnectToMaster(master string) (nextHintedLeader stri
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if mc.currentMaster == "" {
|
glog.V(1).Infof("%s Connected to %v", mc.name, master)
|
||||||
glog.V(1).Infof("%s Connected to %v", mc.name, master)
|
mc.currentMaster = master
|
||||||
mc.currentMaster = master
|
|
||||||
}
|
|
||||||
|
|
||||||
for {
|
for {
|
||||||
volumeLocation, err := stream.Recv()
|
volumeLocation, err := stream.Recv()
|
||||||
|
|||||||
Reference in New Issue
Block a user