mirror of
https://github.com/minio/minio.git
synced 2025-11-20 09:56:07 -05:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user