fix: DeleteObject() API with versionId under replication (#16325)

This commit is contained in:
Harshavardhana
2022-12-28 22:48:33 -08:00
committed by GitHub
parent aa56c6d51d
commit 2937711390
6 changed files with 141 additions and 10 deletions

View File

@@ -309,7 +309,7 @@ func checkReplicateDelete(ctx context.Context, bucket string, dobj ObjectToDelet
for _, tgtArn := range tgtArns {
opts.TargetArn = tgtArn
replicate = rcfg.Replicate(opts)
// when incoming delete is removal of a delete marker( a.k.a versioned delete),
// when incoming delete is removal of a delete marker(a.k.a versioned delete),
// GetObjectInfo returns extra information even though it returns errFileNotFound
if gerr != nil {
validReplStatus := false