ddl: remove redundant backfill metric counting (#43846)

This commit is contained in:
tangenta
2023-05-15 22:17:17 +08:00
committed by GitHub
parent a60cf97237
commit 340b73eb0d

View File

@ -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)
}