Skip to content

Commit ec8d690

Browse files
committed
db: fix range key bound kind when excising
This is likely immaterial since we're making an exclusive sentinel key, but use `LeargetKey().Kind` which is symmetric with the other code.
1 parent fdd04af commit ec8d690

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

excise.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,8 @@ func determineLeftTableBounds(
248248
// The key is owned by the range key iter, so we need to copy it.
249249
lastRangeKey = slices.Clone(rkey.End)
250250
}
251-
lastRangeKeyKind := rkey.Keys[0].Kind()
252251
leftTable.ExtendRangeKeyBounds(cmp, originalTable.SmallestRangeKey,
253-
base.MakeExclusiveSentinelKey(lastRangeKeyKind, lastRangeKey))
252+
base.MakeExclusiveSentinelKey(rkey.LargestKey().Kind(), lastRangeKey))
254253
}
255254
}
256255
return nil

0 commit comments

Comments
 (0)