Skip to content

Commit

Permalink
br: fix region split failure due to empty split key (#56344)
Browse files Browse the repository at this point in the history
close #56228
  • Loading branch information
SonglinLife authored Sep 30, 2024
1 parent 6e8f27f commit a168176
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions br/pkg/task/restore_raw.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ func RunRestoreRaw(c context.Context, g glue.Glue, cmdName string, cfg *RestoreR
func getEndKeys(ranges []rtree.RangeStats) [][]byte {
endKeys := make([][]byte, 0, len(ranges))
for _, rg := range ranges {
if len(rg.EndKey) == 0 {
continue
}
endKeys = append(endKeys, rg.EndKey)
}
return endKeys
Expand Down

0 comments on commit a168176

Please sign in to comment.