load all blocking metadata in background (#10298)

most of this metadata already has fallbacks
and there is no good reason to load them
in blocking fashion
This commit is contained in:
Harshavardhana
2020-08-20 10:38:53 -07:00
committed by GitHub
parent 75d44b3bae
commit 59352d0ac2
5 changed files with 20 additions and 36 deletions

View File

@@ -354,12 +354,12 @@ func initAllSubsystems(ctx context.Context, newObject ObjectLayer) (err error) {
}
// Initialize notification system.
if err = globalNotificationSys.Init(buckets, newObject); err != nil {
if err = globalNotificationSys.Init(ctx, buckets, newObject); err != nil {
return fmt.Errorf("Unable to initialize notification system: %w", err)
}
// Initialize bucket targets sub-system.
if err = globalBucketTargetSys.Init(GlobalContext, buckets, newObject); err != nil {
if err = globalBucketTargetSys.Init(ctx, buckets, newObject); err != nil {
return fmt.Errorf("Unable to initialize bucket target sub-system: %w", err)
}