Skip to content

Commit 6eab846

Browse files
committed
kvclient: remove ReturnOnRangeBoundary request option
This was added in #70763 with the intention of using it for the ExportRequests sent by backup processors. In #114268 we went with a different approach and this feature has not seen subsequent use. BatchRequest options that may result in partial batch results require special thinking/handling at multiple points in dist_sender, so it seems sensible to remove this option if it is unused. Epic: none Release note: None
1 parent 464489b commit 6eab846

File tree

3 files changed

+166
-476
lines changed

3 files changed

+166
-476
lines changed

pkg/kv/kvclient/kvcoord/dist_sender.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2040,13 +2040,6 @@ func (ds *DistSender) divideAndSendBatchToRanges(
20402040
return
20412041
}
20422042
}
2043-
// If we hit a range boundary, return a partial result if requested. We
2044-
// do this after checking the limits, so that they take precedence.
2045-
if ba.Header.ReturnOnRangeBoundary && replyKeys > 0 && !lastRange {
2046-
couldHaveSkippedResponses = true
2047-
resumeReason = kvpb.RESUME_RANGE_BOUNDARY
2048-
return
2049-
}
20502043
}
20512044
}
20522045

0 commit comments

Comments
 (0)