|
|
@ -481,7 +481,7 @@ func (fs fsObjects) DeleteObject(bucket, object string) error { |
|
|
|
if !IsValidObjectName(object) { |
|
|
|
if !IsValidObjectName(object) { |
|
|
|
return ObjectNameInvalid{Bucket: bucket, Object: object} |
|
|
|
return ObjectNameInvalid{Bucket: bucket, Object: object} |
|
|
|
} |
|
|
|
} |
|
|
|
err := fs.storage.DeleteFile(minioMetaBucket, path.Join(bucketMetaPrefix, bucket, object)) |
|
|
|
err := fs.storage.DeleteFile(minioMetaBucket, path.Join(bucketMetaPrefix, bucket, object, fsMetaJSONFile)) |
|
|
|
if err != nil && err != errFileNotFound { |
|
|
|
if err != nil && err != errFileNotFound { |
|
|
|
return toObjectErr(err, bucket, object) |
|
|
|
return toObjectErr(err, bucket, object) |
|
|
|
} |
|
|
|
} |
|
|
|