fix: resync of replication of delete markers (#12932)

Fixes #12919
This commit is contained in:
Poorna Krishnamoorthy
2021-08-23 17:48:22 -04:00
committed by GitHub
parent db35bcf2ce
commit 674c6f7a7b
5 changed files with 27 additions and 3 deletions
+1 -1
View File
@@ -441,7 +441,7 @@ func (er erasureObjects) getObjectInfo(ctx context.Context, bucket, object strin
}
objInfo = fi.ToObjectInfo(bucket, object)
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)
}