Skip to content

Commit

Permalink
loader: fix wrong progress in query-status for loader (pingcap#4093) (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored and 3AceShowHand committed Jan 13, 2022
1 parent 1ba5290 commit 8e1aaab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dm/loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func (w *Worker) run(ctx context.Context, fileJobQueue chan *fileJob, runFatalCh
continue
}
// update finished offset after checkpoint updated
w.loader.finishedDataSize.Store(job.offset)
w.loader.finishedDataSize.Add(job.offset - job.lastOffset)
if _, ok := w.loader.dbTableDataFinishedSize[job.sourceSchema]; ok {
if _, ok := w.loader.dbTableDataFinishedSize[job.sourceSchema][job.sourceTable]; ok {
w.loader.dbTableDataFinishedSize[job.sourceSchema][job.sourceTable].Store(job.offset)
Expand Down

0 comments on commit 8e1aaab

Please sign in to comment.