Pass deletemarker correctly to replicate opts (#11227)

fixes: #11180
master
Poorna Krishnamoorthy 4 years ago committed by GitHub
parent 4ed45ce543
commit 64bddf47d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/bucket-replication.go

@ -166,7 +166,7 @@ func checkReplicateDelete(ctx context.Context, bucket string, dobj ObjectToDelet
Name: dobj.ObjectName, Name: dobj.ObjectName,
SSEC: crypto.SSEC.IsEncrypted(oi.UserDefined), SSEC: crypto.SSEC.IsEncrypted(oi.UserDefined),
UserTags: oi.UserTags, UserTags: oi.UserTags,
DeleteMarker: true, DeleteMarker: oi.DeleteMarker,
VersionID: dobj.VersionID, VersionID: dobj.VersionID,
} }
return oi.DeleteMarker, rcfg.Replicate(opts) return oi.DeleteMarker, rcfg.Replicate(opts)

Loading…
Cancel
Save