diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-10-16 11:02:44 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-10-16 11:02:44 -0700 |
| commit | ee1fc6558a6db603c4eaac9f3cee11873f934f56 (patch) | |
| tree | e5eb5da9fe4563f9f9df3a4da2e768e3187531ee /weed/command | |
| parent | 06e63410975077b54ae8e7cd49ac2b33c308ec46 (diff) | |
| download | seaweedfs-ee1fc6558a6db603c4eaac9f3cee11873f934f56.tar.xz seaweedfs-ee1fc6558a6db603c4eaac9f3cee11873f934f56.zip | |
refactor
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/master.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/master.go b/weed/command/master.go index bf5f83875..74c170395 100644 --- a/weed/command/master.go +++ b/weed/command/master.go @@ -145,7 +145,7 @@ func startMaster(masterOption MasterOptions, masterWhiteList []string) { go func() { time.Sleep(1500 * time.Millisecond) if ms.Topo.RaftServer.Leader() == "" && ms.Topo.RaftServer.IsLogEmpty() && isTheFirstOne(myMasterAddress, peers) { - if ms.MasterClient.FindLeader(myMasterAddress) == "" { + if ms.MasterClient.FindLeaderFromOtherPeers(myMasterAddress) == "" { raftServer.DoJoinCommand() } } |
