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:
mchtech
2024-07-15 10:46:06 -07:00
committed by GitHub
parent 4d498deb35
commit 20d1830e01
+2 -2
View File
@@ -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
}