Skip to content

Commit

Permalink
br: Delete repeated code (#27463)
Browse files Browse the repository at this point in the history
  • Loading branch information
joccau authored Aug 24, 2021
1 parent a5b4c2a commit 106b4dd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions br/pkg/restore/split.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,6 @@ func (rs *RegionSplitter) Split(
maxKey = rule.GetNewKeyPrefix()
}
}
for _, rule := range rewriteRules.Data {
if bytes.Compare(minKey, rule.GetNewKeyPrefix()) > 0 {
minKey = rule.GetNewKeyPrefix()
}
if bytes.Compare(maxKey, rule.GetNewKeyPrefix()) < 0 {
maxKey = rule.GetNewKeyPrefix()
}
}
interval := SplitRetryInterval
scatterRegions := make([]*RegionInfo, 0)
SplitRegions:
Expand Down

0 comments on commit 106b4dd

Please sign in to comment.