add back logic to check master peers
fix https://github.com/chrislusf/seaweedfs/issues/2352
This commit is contained in:
@@ -168,6 +168,12 @@ func runServer(cmd *Command, args []string) bool {
|
|||||||
*isStartingFiler = true
|
*isStartingFiler = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if *isStartingMasterServer {
|
||||||
|
_, peerList := checkPeers(*serverIp, *masterOptions.port, *masterOptions.portGrpc, *masterOptions.peers)
|
||||||
|
peers := strings.Join(pb.ToAddressStrings(peerList), ",")
|
||||||
|
masterOptions.peers = &peers
|
||||||
|
}
|
||||||
|
|
||||||
// ip address
|
// ip address
|
||||||
masterOptions.ip = serverIp
|
masterOptions.ip = serverIp
|
||||||
masterOptions.ipBind = serverBindIp
|
masterOptions.ipBind = serverBindIp
|
||||||
|
|||||||
Reference in New Issue
Block a user