Skip to content

Commit

Permalink
fix: semi sync does not turn off on the old master (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizic authored Aug 24, 2023
1 parent b360470 commit 0925c46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ func (app *App) calcActiveNodesChanges(clusterState map[string]*NodeState, activ
if dataLag > app.config.SemiSyncEnableLag {
app.logger.Warnf("calc active nodes: %v should become active, but it has data lag %d, delaying...", host, dataLag)
dataLagging = append(dataLagging, host)
becomeInactive = append(becomeInactive, host)
}
}
becomeActive = filterOut(becomeActive, dataLagging)
Expand Down

0 comments on commit 0925c46

Please sign in to comment.