Browse Source

skip checking master peers if not starting master

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

2
weed/command/server.go

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

Loading…
Cancel
Save