Skip to content

Commit

Permalink
store: Don't set limit for GetRegionsInfoByRange function (pingcap#45556
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jul 26, 2023
1 parent 412156f commit 53e26e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/helper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, &regionsInfo)
return &regionsInfo, err
}
Expand Down

0 comments on commit 53e26e2

Please sign in to comment.