From 6a030547a2efa3efe38491aa8fc06f3b7d3acc75 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 4 Oct 2021 03:27:10 -0700 Subject: [PATCH] server: remove peer check if not starting master more fix https://github.com/chrislusf/seaweedfs/issues/2352 --- weed/command/server.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/weed/command/server.go b/weed/command/server.go index 7ffabb321..a80ef6796 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -177,13 +177,12 @@ func runServer(cmd *Command, args []string) bool { // ip address masterOptions.ip = serverIp masterOptions.ipBind = serverBindIp - _, masters := checkPeers(*masterOptions.ip, *masterOptions.port, *masterOptions.portGrpc, *masterOptions.peers) - filerOptions.masters = masters + filerOptions.masters = pb.ServerAddresses(*masterOptions.peers).ToAddresses() filerOptions.ip = serverIp filerOptions.bindIp = serverBindIp serverOptions.v.ip = serverIp serverOptions.v.bindIp = serverBindIp - serverOptions.v.masters = masters + serverOptions.v.masters = pb.ServerAddresses(*masterOptions.peers).ToAddresses() serverOptions.v.idleConnectionTimeout = serverTimeout serverOptions.v.dataCenter = serverDataCenter serverOptions.v.rack = serverRack