Fix mirroring of PutObjectRetention event (#3004)

This commit is contained in:
poornas
2019-12-10 16:23:42 -08:00
committed by Harshavardhana
parent 34757e2ce2
commit 871b8da9a6
+1
View File
@@ -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)