Fix Gateway startup sequence to populate etcd (if set) with bucket info (#7686)

This commit is contained in:
Nitish Tiwari 2019-05-24 08:41:52 +05:30 committed by GitHub
parent 7a02faab72
commit 46ced81f41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()