aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-10-09 21:00:40 -0700
committerChris Lu <chris.lu@gmail.com>2019-10-09 21:00:40 -0700
commit7a707617e58e3343009b40d51dc56eaa54ac60ac (patch)
tree905de220328a4a732b4d34e4d267684813d91c62
parent15f968b0546cdf9d5ee6215ff967de0b3ea4b552 (diff)
downloadseaweedfs-7a707617e58e3343009b40d51dc56eaa54ac60ac.tar.xz
seaweedfs-7a707617e58e3343009b40d51dc56eaa54ac60ac.zip
follow the redirected master
fix https://github.com/chrislusf/seaweedfs/issues/1070
-rw-r--r--weed/wdclient/masterclient.go6
1 files 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()