From 53e26e2f1879d681ccb7c66df98050bb91754fcd Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Wed, 26 Jul 2023 13:31:34 +0800 Subject: [PATCH] store: Don't set limit for GetRegionsInfoByRange function (#45556) (#45571) close pingcap/tidb#45531 --- store/helper/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/helper/helper.go b/store/helper/helper.go index c38968de86e6b..bce970305bec8 100644 --- a/store/helper/helper.go +++ b/store/helper/helper.go @@ -808,7 +808,7 @@ func (h *Helper) GetRegionInfoByID(regionID uint64) (*RegionInfo, error) { // GetRegionsInfoByRange scans region by key range func (h *Helper) GetRegionsInfoByRange(sk, ek []byte) (*RegionsInfo, error) { var regionsInfo RegionsInfo - err := h.requestPD("GetRegionByRange", "GET", fmt.Sprintf("%v?key=%s&end_key=%s", pdapi.ScanRegions, + err := h.requestPD("GetRegionByRange", "GET", fmt.Sprintf("%v?key=%s&end_key=%s&limit=-1", pdapi.ScanRegions, url.QueryEscape(string(sk)), url.QueryEscape(string(ek))), nil, ®ionsInfo) return ®ionsInfo, err }