|
|
@ -313,10 +313,6 @@ func serverMain(ctx *cli.Context) { |
|
|
|
logger.FatalIf(err, "Unable to initialize backend") |
|
|
|
logger.FatalIf(err, "Unable to initialize backend") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
globalObjLayerMutex.Lock() |
|
|
|
|
|
|
|
globalObjectAPI = newObject |
|
|
|
|
|
|
|
globalObjLayerMutex.Unlock() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Populate existing buckets to the etcd backend
|
|
|
|
// Populate existing buckets to the etcd backend
|
|
|
|
if globalDNSConfig != nil { |
|
|
|
if globalDNSConfig != nil { |
|
|
|
initFederatorBackend(newObject) |
|
|
|
initFederatorBackend(newObject) |
|
|
@ -326,7 +322,7 @@ func serverMain(ctx *cli.Context) { |
|
|
|
globalConfigSys = NewConfigSys() |
|
|
|
globalConfigSys = NewConfigSys() |
|
|
|
|
|
|
|
|
|
|
|
// Initialize config system.
|
|
|
|
// Initialize config system.
|
|
|
|
if err = globalConfigSys.Init(newObjectLayerFn()); err != nil { |
|
|
|
if err = globalConfigSys.Init(newObject); err != nil { |
|
|
|
logger.Fatal(err, "Unable to initialize config system") |
|
|
|
logger.Fatal(err, "Unable to initialize config system") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -347,7 +343,7 @@ func serverMain(ctx *cli.Context) { |
|
|
|
globalPolicySys = NewPolicySys() |
|
|
|
globalPolicySys = NewPolicySys() |
|
|
|
|
|
|
|
|
|
|
|
// Initialize policy system.
|
|
|
|
// Initialize policy system.
|
|
|
|
if err := globalPolicySys.Init(newObjectLayerFn()); err != nil { |
|
|
|
if err := globalPolicySys.Init(newObject); err != nil { |
|
|
|
logger.Fatal(err, "Unable to initialize policy system") |
|
|
|
logger.Fatal(err, "Unable to initialize policy system") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -355,10 +351,14 @@ func serverMain(ctx *cli.Context) { |
|
|
|
globalNotificationSys = NewNotificationSys(globalServerConfig, globalEndpoints) |
|
|
|
globalNotificationSys = NewNotificationSys(globalServerConfig, globalEndpoints) |
|
|
|
|
|
|
|
|
|
|
|
// Initialize notification system.
|
|
|
|
// Initialize notification system.
|
|
|
|
if err := globalNotificationSys.Init(newObjectLayerFn()); err != nil { |
|
|
|
if err := globalNotificationSys.Init(newObject); err != nil { |
|
|
|
logger.Fatal(err, "Unable to initialize notification system") |
|
|
|
logger.Fatal(err, "Unable to initialize notification system") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
globalObjLayerMutex.Lock() |
|
|
|
|
|
|
|
globalObjectAPI = newObject |
|
|
|
|
|
|
|
globalObjLayerMutex.Unlock() |
|
|
|
|
|
|
|
|
|
|
|
// Prints the formatted startup message once object layer is initialized.
|
|
|
|
// Prints the formatted startup message once object layer is initialized.
|
|
|
|
apiEndpoints := getAPIEndpoints(globalMinioAddr) |
|
|
|
apiEndpoints := getAPIEndpoints(globalMinioAddr) |
|
|
|
printStartupMessage(apiEndpoints) |
|
|
|
printStartupMessage(apiEndpoints) |
|
|
|