Initialize only one retry timer for all sub-systems (#8913)

Also make sure that we create buckets on all zones
successfully, do not run quick heal buckets if not
running with expansion.
This commit is contained in:
Harshavardhana
2020-02-02 06:37:43 +05:30
committed by GitHub
parent 5d838edcef
commit d76160c245
7 changed files with 57 additions and 165 deletions

View File

@@ -49,7 +49,7 @@ func (z *xlZones) quickHealBuckets(ctx context.Context) {
return
}
for _, bucket := range bucketsInfo {
z.HealBucket(ctx, bucket.Name, false, false)
z.MakeBucketWithLocation(ctx, bucket.Name, "")
}
}
@@ -77,7 +77,9 @@ func newXLZones(endpointZones EndpointZones) (ObjectLayer, error) {
return nil, err
}
}
z.quickHealBuckets(context.Background())
if !z.SingleZone() {
z.quickHealBuckets(context.Background())
}
return z, nil
}