Skip to content

Commit

Permalink
loader: fix wrong progress in query-status for loader (#4093)
Browse files Browse the repository at this point in the history
close #3252
  • Loading branch information
Ehco1996 committed Dec 29, 2021
1 parent 2bd7c92 commit b508bc1
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 b508bc1

Please sign in to comment.