Skip to content

Commit

Permalink
ddl: remove redundant backfill metric counting (#43846)
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta committed May 15, 2023
1 parent a60cf97 commit 340b73e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ddl/backfilling_scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,13 +483,11 @@ func (w *addIndexIngestWorker) HandleTask(rs idxRecResult) {
result.totalCount = cnt
result.nextKey = nextKey
result.err = w.checkpointMgr.UpdateCurrent(rs.id, count)
count = cnt
} else {
result.addedCount = count
result.scanCount = count
result.nextKey = nextKey
}
w.metricCounter.Add(float64(count))
if ResultCounterForTest != nil && result.err == nil {
ResultCounterForTest.Add(1)
}
Expand Down

0 comments on commit 340b73e

Please sign in to comment.