Skip to content

Commit

Permalink
mirror: let user decide whether to skip errors if client runs in watc…
Browse files Browse the repository at this point in the history
…h / active-active mode (#4986)

Signed-off-by: mchtech <michu_an@126.com>
  • Loading branch information
mchtech authored Jul 15, 2024
1 parent 4d498de commit 11034f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/mirror-main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 11034f9

Please sign in to comment.