mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -05:00
HealBucket: create the bucket if it is missing in one of the disks. (#2924)
This commit is contained in:
committed by
Harshavardhana
parent
3349153058
commit
0320a77dc0
@@ -226,6 +226,11 @@ func (xl xlObjects) HealObject(bucket, object string) error {
|
||||
if !IsValidBucketName(bucket) {
|
||||
return traceError(BucketNameInvalid{Bucket: bucket})
|
||||
}
|
||||
if object == "" {
|
||||
// Empty object name indicates that bucket should be healed.
|
||||
return healBucket(xl.storageDisks, bucket)
|
||||
}
|
||||
|
||||
// Verify if object is valid.
|
||||
if !IsValidObjectName(object) {
|
||||
// FIXME: return Invalid prefix.
|
||||
|
||||
Reference in New Issue
Block a user