Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Nov 4, 2024
1 parent f7c44c8 commit 5ab67cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erigon-lib/seg/decompress.go
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ func (g *Getter) BinarySearch(fromPrefix []byte, count int, f func(i uint64) (of
}

if foundItem > 2 {
g.Reset(f(uint64(foundItem - 2)))
g.Reset(f(uint64(foundItem - 2))) // prev key
key, _ := g.Next(nil)
if bytes.Compare(fromPrefix, key) > 0 {
panic(fmt.Errorf("see smaller key: %x, %x", fromPrefix, key))
Expand Down

0 comments on commit 5ab67cf

Please sign in to comment.