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

This commit is contained in:
Harshavardhana authored and GitHub committed 2022-03-27 23:39:50 -07:00
1 parent 9ff25fb64b
commit 7956ff0313
1 file changed
+5
+5
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)