We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44961d7 commit 3ded0a0Copy full SHA for 3ded0a0
pkg/kv/kvserver/spanset/merge.go
@@ -11,6 +11,10 @@ import "slices"
11
// equal access timestamps. The implementation is a modified roachpb.MergeSpans.
12
//
13
// 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.
18
func mergeSpans(latches []Span) []Span {
19
if len(latches) == 0 {
20
return latches
0 commit comments