fix: healing buckets during pool expansion (#11224)

fixes #11209
This commit is contained in:
Harshavardhana
2021-01-05 13:24:22 -08:00
committed by GitHub
parent ad511b0eb8
commit 4ed45ce543
3 changed files with 6 additions and 5 deletions

View File

@@ -336,7 +336,7 @@ func initAllSubsystems(ctx context.Context, newObject ObjectLayer) (err error) {
}
}
for _, bucket := range buckets {
if _, err = newObject.HealBucket(ctx, bucket.Name, madmin.HealOpts{}); err != nil {
if _, err = newObject.HealBucket(ctx, bucket.Name, madmin.HealOpts{Recreate: true}); err != nil {
return fmt.Errorf("Unable to list buckets to heal: %w", err)
}
}