Skip to content

Commit

Permalink
Update pkg/store/copr/region_cache.go
Browse files Browse the repository at this point in the history
Co-authored-by: guo-shaoge <shaoge1994@163.com>
  • Loading branch information
2 people authored and ti-chi-bot committed Mar 5, 2024
1 parent a86a0e5 commit 0e3425f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/store/copr/region_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (c *RegionCache) SplitKeyRangesByLocationsWithoutBuckets(bo *Backoffer, ran
if limit == 0 || ranges.Len() <= 0 {
return nil, nil
}
// Currently, LocationKeyRanges returned by `LocateKeyRange`` doesn't contains buckets,
// Currently, LocationKeyRanges returned by `LocateKeyRange` doesn't contains buckets,
// because of https://github.com/tikv/client-go/blob/09ecb550d383c1b048119b586fb5cda658312262/internal/locate/region_cache.go#L1550-L1551.
locs, err := c.LocateKeyRange(bo.TiKVBackoffer(), ranges.RefAt(0).StartKey, ranges.RefAt(ranges.Len()-1).EndKey)
if err != nil {
Expand Down

0 comments on commit 0e3425f

Please sign in to comment.