Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: nolouch <[email protected]>
  • Loading branch information
nolouch committed Nov 7, 2023
1 parent 8073cb9 commit d25c907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/core/region.go
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,7 @@ func (r *RegionsInfo) GetRegionSizeByRange(startKey, endKey []byte) int64 {
break
}

if len(startKey) == 0 {
if len(startKey) == 0 || bytes.Compare(startKey, endKey) >= 0 {
break
}
}
Expand Down

0 comments on commit d25c907

Please sign in to comment.