mirror of
https://github.com/minio/minio.git
synced 2025-11-20 09:56:07 -05:00
fix: populate buckets on etcd after config has loaded (#8658)
This commit is contained in:
@@ -374,11 +374,6 @@ func serverMain(ctx *cli.Context) {
|
||||
logger.Fatal(err, "Unable to list buckets")
|
||||
}
|
||||
|
||||
// Populate existing buckets to the etcd backend
|
||||
if globalDNSConfig != nil {
|
||||
initFederatorBackend(buckets, newObject)
|
||||
}
|
||||
|
||||
logger.FatalIf(initSafeMode(buckets), "Unable to initialize server switching into safe-mode")
|
||||
|
||||
if globalCacheConfig.Enabled {
|
||||
@@ -392,6 +387,11 @@ func serverMain(ctx *cli.Context) {
|
||||
globalObjLayerMutex.Unlock()
|
||||
}
|
||||
|
||||
// Populate existing buckets to the etcd backend
|
||||
if globalDNSConfig != nil {
|
||||
initFederatorBackend(buckets, newObject)
|
||||
}
|
||||
|
||||
initDataUsageStats()
|
||||
initDailyLifecycle()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user