fix: parallelize getPoolIdx() for object lookup (#11547)

This commit is contained in:
Harshavardhana
2021-02-16 19:36:15 -08:00
committed by GitHub
parent 87cce344f6
commit aa8450a2a1
2 changed files with 16 additions and 3 deletions

View File

@@ -458,7 +458,7 @@ func (er erasureObjects) getObjectInfo(ctx context.Context, bucket, object strin
objInfo.StorageClass = sc
}
}
if !fi.VersionPurgeStatus.Empty() {
if !fi.VersionPurgeStatus.Empty() && opts.VersionID != "" {
// Make sure to return object info to provide extra information.
return objInfo, toObjectErr(errMethodNotAllowed, bucket, object)
}