Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
br: add error handling for group context cancel when restore file is …
Browse files Browse the repository at this point in the history
…corrupted (#30190)

close pingcap/tidb#30135
  • Loading branch information
fengou1 authored Dec 20, 2021
1 parent 1427691 commit c069bc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/restore/pipeline_items.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ func (b *tikvSender) restoreWorker(ctx context.Context, ranges <-chan drainResul
eg.Go(func() error {
e := b.client.RestoreFiles(ectx, files, r.result.RewriteRules, b.updateCh)
if e != nil {
r.done()
return e
}
log.Info("restore batch done", rtree.ZapRanges(r.result.Ranges))
Expand Down

0 comments on commit c069bc0

Please sign in to comment.