fix: multiple pool setup return incorrect DeleteMarker metadata (#14642)

This commit is contained in:
Harshavardhana 2022-03-27 23:39:50 -07:00 committed by GitHub
parent 9ff25fb64b
commit 7956ff0313
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -820,6 +820,11 @@ func (z *erasureServerPools) getLatestObjectInfoWithIdx(ctx context.Context, buc
// should be returned upwards.
return res.oi, res.zIdx, err
}
// When its a delete marker and versionID is empty
// we should simply return the error right away.
if res.oi.DeleteMarker && opts.VersionID == "" {
return res.oi, res.zIdx, err
}
}
object = decodeDirObject(object)