mirror: copy events also can mirror (#4842)

This commit is contained in:
dorman
2024-02-14 13:19:52 -08:00
committed by GitHub
parent 1466ae7b50
commit 6bb045a5e6
+2
View File
@@ -672,6 +672,8 @@ func (mj *mirrorJob) watchMirrorEvents(ctx context.Context, events []EventInfo)
encKeyDB: mj.opts.encKeyDB,
}
if mj.opts.activeActive &&
event.Type != notification.ObjectCreatedCopy &&
event.Type != notification.ObjectCreatedCompleteMultipartUpload &&
(getSourceModTimeKey(mirrorURL.SourceContent.Metadata) != "" ||
getSourceModTimeKey(mirrorURL.SourceContent.UserMetadata) != "") {
// If source has active-active attributes, it means that the