Continue mirroring inspite of error events (#2986)

This commit is contained in:
Krishna Srinivas
2019-12-07 18:00:58 -08:00
committed by kannappanr
parent fccdcfe803
commit a8064ff644
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -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
View File
@@ -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)