From 871b8da9a634903261734df475705c8c57732dae Mon Sep 17 00:00:00 2001 From: poornas Date: Tue, 10 Dec 2019 16:23:42 -0800 Subject: [PATCH] Fix mirroring of PutObjectRetention event (#3004) --- cmd/mirror-main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/mirror-main.go b/cmd/mirror-main.go index 48c11b4b..3e6bf0f9 100644 --- a/cmd/mirror-main.go +++ b/cmd/mirror-main.go @@ -463,6 +463,7 @@ func (mj *mirrorJob) watchMirror(ctx context.Context, cancelMirror context.Cance // hence ignore the event to avoid copying it. continue } + sourceContent.Retention = event.Type == EventCreatePutRetention mirrorURL.SourceContent = sourceContent if event.Size == 0 { targetClient, err := newClient(targetPath)