From 55ee94bed030874c35c8adc85f2d942765231f33 Mon Sep 17 00:00:00 2001 From: Poorna Date: Thu, 16 Jun 2022 19:00:35 -0700 Subject: [PATCH] initialize site replication subsys after loading metadata (#15099) --- cmd/server-main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/server-main.go b/cmd/server-main.go index e88f021de..b4094119b 100644 --- a/cmd/server-main.go +++ b/cmd/server-main.go @@ -597,9 +597,6 @@ func serverMain(ctx *cli.Context) { } }() - // Initialize site replication manager. - globalSiteReplicationSys.Init(GlobalContext, newObject) - // Initialize quota manager. globalBucketQuotaSys.Init(newObject) @@ -622,6 +619,9 @@ func serverMain(ctx *cli.Context) { // Initialize bucket metadata sub-system. globalBucketMetadataSys.Init(GlobalContext, buckets, newObject) + // Initialize site replication manager. + globalSiteReplicationSys.Init(GlobalContext, newObject) + // Initialize bucket notification targets. globalNotificationSys.InitBucketTargets(GlobalContext, newObject)