Allow mirror to continue syncing after an object fails to sync (#4427)

This commit is contained in:
Taran Pelkey
2023-01-06 11:11:42 -08:00
committed by GitHub
parent 176072dee4
commit eedcbfe138
+3
View File
@@ -511,6 +511,9 @@ func (mj *mirrorJob) monitorMirrorStatus(cancel context.CancelFunc) (errDuringMi
errorIf(sURLs.Error.Trace(sURLs.TargetContent.URL.String()),
fmt.Sprintf("Failed to remove `%s`.", sURLs.TargetContent.URL.String()))
default:
if strings.Contains(sURLs.Error.ToGoError().Error(), "Overwrite not allowed") {
ignoreErr = true
}
if sURLs.ErrorCond == differInUnknown {
errorIf(sURLs.Error.Trace(), "Failed to perform mirroring")
} else {