Skip to content

Commit

Permalink
store/copr: fix tiflash integration test by disable paging on tiflash (
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao authored Jun 24, 2022
1 parent 8d589d2 commit 9e59f0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion store/copr/coprocessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,9 @@ func (worker *copIteratorWorker) handleCopPagingResult(bo *Backoffer, rpcCtx *ti
pagingRange := resp.pbResp.Range
// only paging requests need to calculate the next ranges
if pagingRange == nil {
return nil, errors.New("lastRange in paging should not be nil")
// If the storage engine doesn't support paging protocol, it should have return all the region data.
// So we finish here.
return nil, nil
}
// calculate next ranges and grow the paging size
task.ranges = worker.calculateRemain(task.ranges, pagingRange, worker.req.Desc)
Expand Down

0 comments on commit 9e59f0d

Please sign in to comment.