Skip to content

Commit

Permalink
sstable: remove unused rawBlockIter err field
Browse files Browse the repository at this point in the history
Remove an unused err field on rawBlockIter. A raw block iterator never
errors.
  • Loading branch information
jbowens committed Oct 4, 2021
1 parent c738414 commit b2eb88a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sstable/raw_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ type rawBlockIter struct {
ikey InternalKey
cached []blockEntry
cachedBuf []byte
err error
}

func newRawBlockIter(cmp Compare, block block) (*rawBlockIter, error) {
Expand Down Expand Up @@ -270,12 +269,12 @@ func (i *rawBlockIter) Valid() bool {
// Error implements internalIterator.Error, as documented in the pebble
// package.
func (i *rawBlockIter) Error() error {
return i.err
return nil
}

// Close implements internalIterator.Close, as documented in the pebble
// package.
func (i *rawBlockIter) Close() error {
i.val = nil
return i.err
return nil
}

0 comments on commit b2eb88a

Please sign in to comment.