From 6bb045a5e67f10fe66053195c4aac32744ad9f18 Mon Sep 17 00:00:00 2001 From: dorman <37854724+dormanze@users.noreply.github.com> Date: Thu, 15 Feb 2024 05:19:52 +0800 Subject: [PATCH] mirror: copy events also can mirror (#4842) --- cmd/mirror-main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/mirror-main.go b/cmd/mirror-main.go index aab22b55..e42eaa73 100644 --- a/cmd/mirror-main.go +++ b/cmd/mirror-main.go @@ -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