mirror: let user decide whether to skip errors if client runs in watch / active-active mode (#4986)
Signed-off-by: mchtech <michu_an@126.com>
This commit is contained in:
+2
-2
@@ -581,8 +581,8 @@ func (mj *mirrorJob) monitorMirrorStatus(cancel context.CancelFunc) (errDuringMi
|
||||
if !ignoreErr {
|
||||
mirrorFailedOps.Inc()
|
||||
errDuringMirror = true
|
||||
// Quit mirroring if --watch and --active-active are not passed
|
||||
if !mj.opts.skipErrors && !mj.opts.activeActive && !mj.opts.isWatch {
|
||||
// Quit mirroring if --skip-errors is not passed
|
||||
if !mj.opts.skipErrors {
|
||||
cancel()
|
||||
cancelInProgress = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user