Skip to content

Commit

Permalink
restore: added a comment about retry
Browse files Browse the repository at this point in the history
Signed-off-by: Yu Juncen <yujuncen@pingcap.com>
  • Loading branch information
YuJuncen committed Dec 22, 2021
1 parent bb9116b commit c2c22f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions br/pkg/restore/split.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ func (rs *RegionSplitter) ScatterRegions(ctx context.Context, newRegions []*Regi
rs.waitForSplit(ctx, region.Region.Id)
}

// No retry needed, the internal implementation of `ScatterRegions` involves retry already.
err := rs.client.ScatterRegions(ctx, newRegions)
if isUnsupportedError(err) {
log.Warn("batch scatter isn't supported, rollback to old method", logutil.ShortError(err))
Expand Down

0 comments on commit c2c22f0

Please sign in to comment.