Skip to content

Commit 9c1a8f5

Browse files
committed
added changes
1 parent 96d174c commit 9c1a8f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

skl/skl.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ func newNode(arena *Arena, key []byte, v y.ValueStruct, height int) *node {
9595
// The base level is already allocated in the node struct.
9696
nodeOffset := arena.putNode(height)
9797
keyOffset := arena.putKey(key)
98+
fmt.Println("NEW NODE", keyOffset)
9899

99100
node := arena.getNode(nodeOffset)
100101
node.keyOffset = keyOffset
@@ -263,7 +264,7 @@ func (s *Skiplist) findSpliceForLevel(key []byte, before uint32, level int) (uin
263264
if nextNode == nil {
264265
return before, next
265266
}
266-
fmt.Println("FIND SPLICE", key, before, level, beforeNode, next, nextNode)
267+
fmt.Println("FIND SPLICE", key, before, level)
267268
nextKey := nextNode.key(s.arena)
268269
cmp := y.CompareKeys(key, nextKey)
269270
if cmp == 0 {

0 commit comments

Comments
 (0)