mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
skip checking master peers if not starting master
This commit is contained in:
parent
280c10ec8f
commit
f5cc96f289
|
@ -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…
Reference in a new issue