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 71cc2c0 commit a1ce9afCopy full SHA for a1ce9af
skl/skl.go
@@ -324,7 +324,9 @@ func (s *Skiplist) Put(key []byte, v y.ValueStruct) {
324
y.AssertTrue(i > 1) // This cannot happen in base level.
325
// We haven't computed prev, next for this level because height exceeds old listHeight.
326
// For these levels, we expect the lists to be sparse, so we can just search from head.
327
+ fmt.Println(key, s.head.keyOffset)
328
prev[i], next[i] = s.findSpliceForLevel(key, s.head.keyOffset, i)
329
+ fmt.Println(i, prev[i], next[i])
330
// Someone adds the exact same key before we are able to do so. This can only happen on
331
// the base level. But we know we are not on the base level.
332
y.AssertTrue(prev[i] != next[i])
0 commit comments