Continue mirroring inspite of error events (#2986)
This commit is contained in:
committed by
kannappanr
parent
fccdcfe803
commit
a8064ff644
+1
-2
@@ -532,9 +532,8 @@ func (mj *mirrorJob) startMirror(ctx context.Context, cancelMirror context.Cance
|
||||
return
|
||||
}
|
||||
if sURLs.Error != nil {
|
||||
stopParallel()
|
||||
mj.statusCh <- sURLs
|
||||
return
|
||||
continue
|
||||
}
|
||||
|
||||
if sURLs.SourceContent != nil {
|
||||
|
||||
+1
-1
@@ -129,7 +129,7 @@ func deltaSourceTarget(sourceURL, targetURL string, isFake, isOverwrite, isRemov
|
||||
if diffMsg.Error != nil {
|
||||
// Send all errors through the channel
|
||||
URLsCh <- URLs{Error: diffMsg.Error}
|
||||
return
|
||||
continue
|
||||
}
|
||||
|
||||
srcSuffix := strings.TrimPrefix(diffMsg.FirstURL, sourceURL)
|
||||
|
||||
Reference in New Issue
Block a user