From 46ced81f41343a5531183d7dc2d72d284bc9fb50 Mon Sep 17 00:00:00 2001 From: Nitish Tiwari Date: Fri, 24 May 2019 08:41:52 +0530 Subject: [PATCH] Fix Gateway startup sequence to populate etcd (if set) with bucket info (#7686) --- cmd/gateway-main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/gateway-main.go b/cmd/gateway-main.go index b97cc6484..d37baf210 100644 --- a/cmd/gateway-main.go +++ b/cmd/gateway-main.go @@ -221,6 +221,11 @@ func StartGateway(ctx *cli.Context, gw Gateway) { logger.FatalIf(err, "Unable to initialize gateway backend") } + // Populate existing buckets to the etcd backend + if globalDNSConfig != nil { + initFederatorBackend(newObject) + } + if enableConfigOps { // Create a new config system. globalConfigSys = NewConfigSys()