From 80f13878776a1944934cc8a6fb4666c145355400 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 19 Jan 2017 11:32:13 -0800 Subject: [PATCH] Initialize peers properly for localhost. (#3600) This introduced a regression. Fixes #3594 --- cmd/server-main.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/server-main.go b/cmd/server-main.go index 87f9fee00..3bd31c4d2 100644 --- a/cmd/server-main.go +++ b/cmd/server-main.go @@ -425,18 +425,18 @@ func serverMain(c *cli.Context) { handler, err := configureServerHandler(srvConfig) fatalIf(err, "Unable to configure one of server's RPC services.") - // Initialize S3 Peers inter-node communication only in distributed setup. - initGlobalS3Peers(endpoints) - - // Initialize Admin Peers inter-node communication only in distributed setup. - initGlobalAdminPeers(endpoints) - // Initialize a new HTTP server. apiServer := NewServerMux(serverAddr, handler) // Set the global minio addr for this server. globalMinioAddr = getLocalAddress(srvConfig) + // Initialize S3 Peers inter-node communication only in distributed setup. + initGlobalS3Peers(endpoints) + + // Initialize Admin Peers inter-node communication only in distributed setup. + initGlobalAdminPeers(endpoints) + // Determine API endpoints where we are going to serve the S3 API from. apiEndPoints, err := finalizeAPIEndpoints(apiServer.Server) fatalIf(err, "Unable to finalize API endpoints for %s", apiServer.Server.Addr)