Skip to content

Commit a1ce9af

Browse files
added changes
1 parent 71cc2c0 commit a1ce9af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

skl/skl.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,9 @@ func (s *Skiplist) Put(key []byte, v y.ValueStruct) {
324324
y.AssertTrue(i > 1) // This cannot happen in base level.
325325
// We haven't computed prev, next for this level because height exceeds old listHeight.
326326
// For these levels, we expect the lists to be sparse, so we can just search from head.
327+
fmt.Println(key, s.head.keyOffset)
327328
prev[i], next[i] = s.findSpliceForLevel(key, s.head.keyOffset, i)
329+
fmt.Println(i, prev[i], next[i])
328330
// Someone adds the exact same key before we are able to do so. This can only happen on
329331
// the base level. But we know we are not on the base level.
330332
y.AssertTrue(prev[i] != next[i])

0 commit comments

Comments
 (0)