From 3aa36f42f11945010f98591e09ff7ab6d480ab54 Mon Sep 17 00:00:00 2001 From: SeaRise Date: Thu, 29 Feb 2024 16:55:31 +0800 Subject: [PATCH] Update pkg/store/copr/region_cache.go Co-authored-by: guo-shaoge --- pkg/store/copr/region_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/store/copr/region_cache.go b/pkg/store/copr/region_cache.go index 3f102cbaab609..7883dc13c0166 100644 --- a/pkg/store/copr/region_cache.go +++ b/pkg/store/copr/region_cache.go @@ -193,7 +193,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 {