Skip to content

Commit 2967b49

Browse files
committed
rditer: propagate ReadCategory
Update IterateMVCCReplicaKeySpans to propagate the user-provided ReadCategory to pebble Iterators that are constructed throughout iteration. Epic: none Informs #158017. Release note: none
1 parent 9416418 commit 2967b49

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/kv/kvserver/rditer/replica_data_iter.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,10 @@ func (ri *ReplicaMVCCDataIterator) tryCloseAndCreateIter() {
282282
}
283283
var err error
284284
ri.it, err = ri.reader.NewMVCCIterator(ri.ctx, ri.IterKind, storage.IterOptions{
285-
LowerBound: ri.spans[ri.curIndex].Key,
286-
UpperBound: ri.spans[ri.curIndex].EndKey,
287-
KeyTypes: ri.KeyTypes,
285+
LowerBound: ri.spans[ri.curIndex].Key,
286+
UpperBound: ri.spans[ri.curIndex].EndKey,
287+
KeyTypes: ri.KeyTypes,
288+
ReadCategory: ri.ReadCategory,
288289
})
289290
if err != nil {
290291
ri.err = err

0 commit comments

Comments
 (0)