fs/delete-object: fs.json filepath was incorrect. (#2448)

This commit is contained in:
Krishna Srinivas 2016-08-16 22:35:08 +05:30 committed by Harshavardhana
parent 8e2f64aea4
commit f2bffe6086

View File

@ -481,7 +481,7 @@ func (fs fsObjects) DeleteObject(bucket, object string) error {
if !IsValidObjectName(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 {
return toObjectErr(err, bucket, object)
}