Skip to content

storage/engine: fix Go 1.12 build due to missing C.bool type casts#35195

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/earlyResp2
Feb 26, 2019
Merged

storage/engine: fix Go 1.12 build due to missing C.bool type casts#35195
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/earlyResp2

Conversation

@nvb
Copy link
Contributor

@nvb nvb commented Feb 26, 2019

Before this, compiling with Go 1.12 would fail with an error like:

cannot use _cgo1 (type bool) as type _Ctype__Bool in argument to _Cfunc_DBIterPrev

I haven't looked into what changed to break this yet.

Release note: None

Before this, compiling with Go 1.12 would fail with an error like:
```
cannot use _cgo1 (type bool) as type _Ctype__Bool in argument to _Cfunc_DBIterPrev
```

I haven't looked into what changed to break this yet.

Release note: None
@nvb nvb requested review from a team and petermattis February 26, 2019 04:02
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@nvb nvb mentioned this pull request Feb 26, 2019
4 tasks
@nvb
Copy link
Contributor Author

nvb commented Feb 26, 2019

bors r+

craig bot pushed a commit that referenced this pull request Feb 26, 2019
35195: storage/engine: fix Go 1.12 build due to missing C.bool type casts r=nvanbenschoten a=nvanbenschoten

Before this, compiling with Go 1.12 would fail with an error like:
```
cannot use _cgo1 (type bool) as type _Ctype__Bool in argument to _Cfunc_DBIterPrev
```

I haven't looked into what changed to break this yet.

Release note: None

Co-authored-by: Nathan VanBenschoten <nvanbenschoten@gmail.com>
@craig
Copy link
Contributor

craig bot commented Feb 26, 2019

Build succeeded

@craig craig bot merged commit b79b55f into cockroachdb:master Feb 26, 2019
@nvb nvb deleted the nvanbenschoten/earlyResp2 branch February 26, 2019 19:14
@RaduBerinde
Copy link
Member

I am backporting this to 2.1 (the "verify source archive" part of the build is failing with the same error).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants