Skip to content

Commit

Permalink
Merge pull request #35531 from ajwerner/backport2.0-35195
Browse files Browse the repository at this point in the history
release-2.0: storage/engine: fix Go 1.12 build due to missing C.bool type casts
  • Loading branch information
ajwerner authored Mar 8, 2019
2 parents 1ab53fa + 9d39a73 commit c0f63e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/storage/engine/rocksdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1986,22 +1986,22 @@ func (r *rocksDBIterator) Valid() (bool, error) {

func (r *rocksDBIterator) Next() {
r.checkEngineOpen()
r.setState(C.DBIterNext(r.iter, false /* skip_current_key_versions */))
r.setState(C.DBIterNext(r.iter, C.bool(false) /* skip_current_key_versions */))
}

func (r *rocksDBIterator) Prev() {
r.checkEngineOpen()
r.setState(C.DBIterPrev(r.iter, false /* skip_current_key_versions */))
r.setState(C.DBIterPrev(r.iter, C.bool(false) /* skip_current_key_versions */))
}

func (r *rocksDBIterator) NextKey() {
r.checkEngineOpen()
r.setState(C.DBIterNext(r.iter, true /* skip_current_key_versions */))
r.setState(C.DBIterNext(r.iter, C.bool(true) /* skip_current_key_versions */))
}

func (r *rocksDBIterator) PrevKey() {
r.checkEngineOpen()
r.setState(C.DBIterPrev(r.iter, true /* skip_current_key_versions */))
r.setState(C.DBIterPrev(r.iter, C.bool(true) /* skip_current_key_versions */))
}

func (r *rocksDBIterator) Key() MVCCKey {
Expand Down

0 comments on commit c0f63e4

Please sign in to comment.