xl/tests: Enable server handler tests over XL. (#1512)

Fixes #1513
This commit is contained in:
Harshavardhana
2016-05-06 16:47:23 -07:00
parent 0b74f5624e
commit 0625c050e6
4 changed files with 1406 additions and 68 deletions

View File

@@ -226,9 +226,10 @@ func (xl xlObjects) DeleteObject(bucket, object string) error {
if ok, err := isMultipartObject(xl.storage, bucket, object); err != nil {
return toObjectErr(err, bucket, object)
} else if !ok {
if err := xl.storage.DeleteFile(bucket, object); err != nil {
if err = xl.storage.DeleteFile(bucket, object); err != nil {
return toObjectErr(err, bucket, object)
}
return nil
}
// Get parts info.
info, err := getMultipartObjectInfo(xl.storage, bucket, object)