Skip to content

Commit

Permalink
store: Don't set limit for GetRegionsInfoByRange function (#45556)
Browse files Browse the repository at this point in the history
close #45531
  • Loading branch information
Defined2014 authored Jul 25, 2023
1 parent b4183e1 commit 552d319
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 552d319

Please sign in to comment.