mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
server: fix starting default master list
This commit is contained in:
parent
74acaad0d1
commit
6f75df8660
|
@ -121,13 +121,17 @@ func runServer(cmd *Command, args []string) bool {
|
||||||
*isStartingFiler = true
|
*isStartingFiler = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_, peerList := checkPeers(*serverIp, *masterOptions.port, *masterOptions.peers)
|
||||||
|
peers := strings.Join(peerList, ",")
|
||||||
|
masterOptions.peers = &peers
|
||||||
|
|
||||||
masterOptions.ip = serverIp
|
masterOptions.ip = serverIp
|
||||||
masterOptions.ipBind = serverBindIp
|
masterOptions.ipBind = serverBindIp
|
||||||
filerOptions.masters = masterOptions.peers
|
filerOptions.masters = &peers
|
||||||
filerOptions.ip = serverBindIp
|
filerOptions.ip = serverBindIp
|
||||||
serverOptions.v.ip = serverIp
|
serverOptions.v.ip = serverIp
|
||||||
serverOptions.v.bindIp = serverBindIp
|
serverOptions.v.bindIp = serverBindIp
|
||||||
serverOptions.v.masters = masterOptions.peers
|
serverOptions.v.masters = &peers
|
||||||
serverOptions.v.idleConnectionTimeout = serverTimeout
|
serverOptions.v.idleConnectionTimeout = serverTimeout
|
||||||
serverOptions.v.dataCenter = serverDataCenter
|
serverOptions.v.dataCenter = serverDataCenter
|
||||||
serverOptions.v.rack = serverRack
|
serverOptions.v.rack = serverRack
|
||||||
|
|
Loading…
Reference in a new issue