From 11034f9de1e9f993c36fbad961f76f876a753328 Mon Sep 17 00:00:00 2001 From: mchtech Date: Tue, 16 Jul 2024 01:46:06 +0800 Subject: [PATCH] mirror: let user decide whether to skip errors if client runs in watch / active-active mode (#4986) Signed-off-by: mchtech --- cmd/mirror-main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/mirror-main.go b/cmd/mirror-main.go index 15497c01..25a7d0a6 100644 --- a/cmd/mirror-main.go +++ b/cmd/mirror-main.go @@ -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 }