fix: rename some function names to avoid confusion (#14262)

This commit is contained in:
Harshavardhana
2022-02-07 11:49:07 -08:00
committed by GitHub
parent 0cac868a36
commit 3c87e1e60d
8 changed files with 20 additions and 20 deletions

View File

@@ -291,7 +291,7 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
newObject = NewGatewayLayerWithLocker(newObject)
// Calls all New() for all sub-systems.
newAllSubsystems()
initAllSubsystems()
// Once endpoints are finalized, initialize the new object api in safe mode.
globalObjLayerMutex.Lock()
@@ -307,7 +307,7 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
}
logger.FatalIf(globalBucketMetadataSys.Init(GlobalContext, buckets, newObject), "Unable to initialize bucket metadata")
logger.FatalIf(globalNotificationSys.Init(GlobalContext, newObject), "Unable to initialize notification system")
logger.FatalIf(globalNotificationSys.InitBucketTargets(GlobalContext, newObject), "Unable to initialize bucket targets for notification system")
}
if globalCacheConfig.Enabled {