Skip to content

Commit

Permalink
br: check the unchecked error of initialization of dml iterator in pi…
Browse files Browse the repository at this point in the history
…tr (#45854)

close #45853
  • Loading branch information
Leavrth authored Aug 7, 2023
1 parent 325a8b8 commit 52680cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions br/pkg/task/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,9 @@ func restoreStream(
updateRewriteRules(rewriteRules, schemasReplace)

logFilesIter, err := client.LoadDMLFiles(ctx)
if err != nil {
return errors.Annotate(err, "failed to initialize the dml iterator")
}
pd := g.StartProgress(ctx, "Restore KV Files", int64(dataFileCount), !cfg.LogProgress)
err = withProgress(pd, func(p glue.Progress) error {
return client.RestoreKVFiles(ctx, rewriteRules, logFilesIter, cfg.PitrBatchCount, cfg.PitrBatchSize, updateStats, p.IncBy)
Expand Down

0 comments on commit 52680cd

Please sign in to comment.