Skip to content

Commit

Permalink
loader: fix wrong progress in query-status for loader (#4093) (#4143)
Browse files Browse the repository at this point in the history
close #3252
  • Loading branch information
ti-chi-bot authored Dec 30, 2021
1 parent e73e411 commit 1bc0c48
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 1bc0c48

Please sign in to comment.