xl: Enable a subset of tests for XL branch. (#1359)

This commit is contained in:
Harshavardhana
2016-04-22 16:19:45 -07:00
committed by Harshavardhana
parent 8c85815106
commit cab6805f09
4 changed files with 58 additions and 18 deletions

View File

@@ -40,16 +40,16 @@ func toObjectErr(err error, params ...string) error {
return StorageInsufficientReadResources{}
case errWriteQuorum:
return StorageInsufficientWriteResources{}
case errFileNotFound:
case errIsNotRegular:
if len(params) >= 2 {
return ObjectNotFound{
return ObjectExistsAsPrefix{
Bucket: params[0],
Object: params[1],
}
}
case errIsNotRegular:
case errFileNotFound:
if len(params) >= 2 {
return ObjectExistsAsPrefix{
return ObjectNotFound{
Bucket: params[0],
Object: params[1],
}