Skip to content

Commit 3ded0a0

Browse files
committed
spanset: add TODO
Epic: none Release note: none
1 parent 44961d7 commit 3ded0a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/kv/kvserver/spanset/merge.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import "slices"
1111
// equal access timestamps. The implementation is a modified roachpb.MergeSpans.
1212
//
1313
// The input spans are not safe for re-use.
14+
//
15+
// TODO(pav-kv): explain and assert on what this function expects. It definitely
16+
// does not solve the most general form of merging, but it seems the expectation
17+
// here is that every key is covered only by one timestamp.
1418
func mergeSpans(latches []Span) []Span {
1519
if len(latches) == 0 {
1620
return latches

0 commit comments

Comments
 (0)