Browse Source

skip checking master peers if not starting master

pull/1862/head
Chris Lu 4 years ago
parent
commit
f5cc96f289
  1. 8
      weed/command/server.go

8
weed/command/server.go

@ -156,9 +156,11 @@ func runServer(cmd *Command, args []string) bool {
*isStartingFiler = true
}
_, peerList := checkPeers(*serverIp, *masterOptions.port, *masterOptions.peers)
peers := strings.Join(peerList, ",")
masterOptions.peers = &peers
if *isStartingMasterServer {
_, peerList := checkPeers(*serverIp, *masterOptions.port, *masterOptions.peers)
peers := strings.Join(peerList, ",")
masterOptions.peers = &peers
}
// ip address
masterOptions.ip = serverIp

Loading…
Cancel
Save