Skip to content

Commit

Permalink
kv: updated out-dated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
xwb1989 committed Oct 26, 2015
1 parent 7035023 commit 4ec07c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion kv/btree_buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ func (i *btreeIter) Value() []byte {
// Next implements Iterator Next.
func (i *btreeIter) Next() (Iterator, error) {
k, v, err := i.e.Next()
// find the first non-nil key
i.k, i.v, i.ok = string(fromIfaces(k)), fromIfaces(v), err == nil
return i, err
}
Expand Down
5 changes: 2 additions & 3 deletions kv/union_iter.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ type UnionIter struct {

func newUnionIter(dirtyIt Iterator, snapshotIt Iterator) *UnionIter {
it := &UnionIter{
dirtyIt: dirtyIt,
snapshotIt: snapshotIt,
// leveldb use next for checking valid...
dirtyIt: dirtyIt,
snapshotIt: snapshotIt,
dirtyValid: dirtyIt.Valid(),
snapshotValid: snapshotIt.Valid(),
}
Expand Down

0 comments on commit 4ec07c5

Please sign in to comment.