Skip to content
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.

Commit

Permalink
skip holes in First as well
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechampine committed Oct 27, 2015
1 parent ab8ad5d commit ddef166
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cursor.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ func (c *Cursor) First() (key []byte, value []byte) {
if (flags & uint32(bucketLeafFlag)) != 0 {
return k, nil
}
if k == nil && v == nil && flags == 0 {
k, v, flags = c.next()
}
return k, v

}
Expand Down

0 comments on commit ddef166

Please sign in to comment.