Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Ibrahim Jarif committed Dec 18, 2019
1 parent 616b269 commit 9a52493
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions table/merge_iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,7 @@ func (mi *MergeIterator) Next() {
}

func (mi *MergeIterator) setCurrent() {
if cap(mi.curKey) < len(mi.small.key) {
mi.curKey = make([]byte, 2*len(mi.small.key))
}
mi.curKey = mi.curKey[:len(mi.small.key)]
copy(mi.curKey, mi.small.key)
mi.curKey = append(mi.curKey[:0], mi.small.key...)
}

// Rewind seeks to first element (or last element for reverse iterator).
Expand Down

0 comments on commit 9a52493

Please sign in to comment.