mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 08:13:28 +03:00
fix: avoid undoing bucket creation and return the first err instead (#9578)
This commit is contained in:
@@ -150,10 +150,6 @@ func healBucket(ctx context.Context, storageDisks []StorageAPI, bucket string, w
|
||||
|
||||
reducedErr = reduceWriteQuorumErrs(ctx, errs, bucketOpIgnoredErrs, writeQuorum)
|
||||
if reducedErr != nil {
|
||||
if reducedErr == errXLWriteQuorum {
|
||||
// Purge successfully created buckets if we don't have writeQuorum.
|
||||
undoMakeBucket(storageDisks, bucket)
|
||||
}
|
||||
return res, reducedErr
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user