Skip to content

Commit

Permalink
feat: fix stopping timers on rollback mitigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdulsametileri committed Nov 2, 2023
1 parent ea4a72b commit 13d10c4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions couchbase/rollback_mitigation.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,14 @@ func (r *rollbackMitigation) Stop() {
r.observeCloseCh <- struct{}{}
<-r.observeCloseDoneCh
}
r.configWatchTimer.Stop()
r.failOverUUIDTimer.Stop()

if r.configWatchTimer != nil {
r.configWatchTimer.Stop()
}

if r.failOverUUIDTimer != nil {
r.failOverUUIDTimer.Stop()
}

logger.Log.Info("rollback mitigation stopped")
}
Expand Down

0 comments on commit 13d10c4

Please sign in to comment.