fix: dangling objects honor parityBlocks instead of dataBlocks (#19019)

Bonus: do not recreate buckets if NoRecreate is asked.
This commit is contained in:
Harshavardhana
2024-02-08 15:22:16 -08:00
committed by GitHub
parent 6005ad3d48
commit 404d8b3084
4 changed files with 11 additions and 20 deletions

View File

@@ -1840,12 +1840,6 @@ func (z *erasureServerPools) DeleteBucket(ctx context.Context, bucket string, op
}
}
if err != nil && !isErrBucketNotFound(err) {
if !opts.NoRecreate {
z.s3Peer.MakeBucket(ctx, bucket, MakeBucketOptions{})
}
}
if err == nil {
// Purge the entire bucket metadata entirely.
z.deleteAll(context.Background(), minioMetaBucket, pathJoin(bucketMetaPrefix, bucket))