Skip to content

Commit

Permalink
fix: initialize vbuuid failovermap
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdulsametileri committed Nov 1, 2023
1 parent 3118a4b commit 9f153c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions couchbase/rollback_mitigation.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,11 @@ func (r *rollbackMitigation) markAbsentInstances() error { //nolint:unused
}

func (r *rollbackMitigation) startObserve(groupID int) {
r.vbUUIDMap = wrapper.CreateConcurrentSwissMap[uint16, gocbcore.VbUUID](1024)

r.LoadVbUUIDMap()
go r.observeVbUUIDMap()

r.observeTimer = time.NewTicker(r.config.RollbackMitigation.Interval)
for {
select {
Expand Down

0 comments on commit 9f153c6

Please sign in to comment.