fix: upon failure attempt an undo for all calls in DeleteBucket() (#12480)

its possible that, version might exist on second pool such that
upon deleteBucket() might have deleted the bucket on pool1 successfully
since it doesn't have any objects, undo such operations properly in
all any error scenario.

Also delete bucket metadata from pool layer rather than sets layer.
This commit is contained in:
Harshavardhana authored and GitHub committed 2021-06-09 17:13:00 -07:00
1 parent 22c58be421
commit a93aa2eac1
2 files changed
+3 -8

No files matched your search

-3
View File
@@ -842,9 +842,6 @@ func (s *erasureSets) DeleteBucket(ctx context.Context, bucket string, forceDele
}
}
// Delete all bucket metadata.
deleteBucketMetadata(ctx, s, bucket)
// Success.
return nil
}