Skip to content

Commit

Permalink
batcheval: disable assettions on addsstable above scan
Browse files Browse the repository at this point in the history
Release note: none.
  • Loading branch information
dt committed Apr 5, 2022
1 parent 63ea913 commit 04bb436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kv/kvserver/batcheval/cmd_add_sstable.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ func EvalAddSSTable(
// addition, and instead just use this key-only iterator. If a caller actually
// needs to know what data is there, it must issue its own real Scan.
if args.ReturnFollowingLikelyNonEmptySpanStart {
existingIter := readWriter.NewMVCCIterator(
existingIter := spanset.DisableReaderAssertions(readWriter).NewMVCCIterator(
storage.MVCCKeyIterKind, // don't care if it is committed or not, just that it isn't empty.
storage.IterOptions{UpperBound: reply.RangeSpan.EndKey},
)
Expand Down

0 comments on commit 04bb436

Please sign in to comment.