Skip to content

Commit 3b4cf41

Browse files
craig[bot]yuzefovich
andcommitted
Merge #157093
157093: kvstreamer: avoid sorting single request r=yuzefovich a=yuzefovich Epic: None Release note: None Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com>
2 parents ae0b3d7 + 564f51e commit 3b4cf41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kv/kvclient/kvstreamer/streamer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ func (s *Streamer) Enqueue(ctx context.Context, reqs []kvpb.RequestUnion) (retEr
718718
}
719719
totalReqsMemUsage += r.reqsReservedBytes + r.overheadAccountedFor
720720

721-
if s.mode == OutOfOrder {
721+
if s.mode == OutOfOrder && len(r.reqs) > 1 {
722722
// Sort all single-range requests to be in the key order.
723723
// TODO(yuzefovich): we should be able to sort not head-of-the-line
724724
// request in the InOrder mode too; however, there would be

0 commit comments

Comments
 (0)