From 62c2732fd1e043132cfc4f9bdea6b58654445c2a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 4 Oct 2021 02:51:26 -0700 Subject: [PATCH] add back logic to check master peers fix https://github.com/chrislusf/seaweedfs/issues/2352 --- weed/command/server.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/weed/command/server.go b/weed/command/server.go index 9f402c9f8..7ffabb321 100644 --- a/weed/command/server.go +++ b/weed/command/server.go @@ -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