mirror of
https://github.com/minio/minio.git
synced 2025-11-20 09:56:07 -05:00
heal buckets during init and make sure to wait on quorum (#9526)
heal buckets properly during expansion, and make sure to wait for the quorum properly such that healing can be retried.
This commit is contained in:
@@ -44,16 +44,6 @@ func (z *xlZones) SingleZone() bool {
|
||||
return len(z.zones) == 1
|
||||
}
|
||||
|
||||
func (z *xlZones) quickHealBuckets(ctx context.Context) {
|
||||
bucketsInfo, err := z.ListBucketsHeal(ctx)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
for _, bucket := range bucketsInfo {
|
||||
z.MakeBucketWithLocation(ctx, bucket.Name, "")
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize new zone of erasure sets.
|
||||
func newXLZones(ctx context.Context, endpointZones EndpointZones) (ObjectLayer, error) {
|
||||
var (
|
||||
@@ -88,7 +78,6 @@ func newXLZones(ctx context.Context, endpointZones EndpointZones) (ObjectLayer,
|
||||
}
|
||||
}
|
||||
|
||||
z.quickHealBuckets(ctx)
|
||||
go intDataUpdateTracker.start(GlobalContext, localDrives...)
|
||||
return z, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user