add back logic to check master peers

fix https://github.com/chrislusf/seaweedfs/issues/2352
This commit is contained in:
Chris Lu 2021-10-04 02:51:26 -07:00
parent d4bb16e20e
commit 62c2732fd1

View file

@ -168,6 +168,12 @@ func runServer(cmd *Command, args []string) bool {
*isStartingFiler = true
}
if *isStartingMasterServer {
_, peerList := checkPeers(*serverIp, *masterOptions.port, *masterOptions.portGrpc, *masterOptions.peers)
peers := strings.Join(pb.ToAddressStrings(peerList), ",")
masterOptions.peers = &peers
}
// ip address
masterOptions.ip = serverIp
masterOptions.ipBind = serverBindIp