Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
NamanJain8 committed Dec 17, 2020
1 parent 19216ac commit 355b8e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions table/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ func (itr *Iterator) seekFrom(key []byte, whence int) {
itr.reset()
case current:
}

idx := sort.Search(itr.t.noOfBlocks, func(idx int) bool {
ko := itr.t.blockOffsets()[idx]
return y.CompareKeys(ko.Key, key) > 0
Expand Down

0 comments on commit 355b8e2

Please sign in to comment.