Skip to content

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented Nov 4, 2015

This PR fixes a regression introduced into the database opening where a return error was always interpreted as a syscall.Errno, even though it can be a lot of different things. Permission error is one where it crashes, but there could be others too.

@robotally
Copy link

Vote Count Reviewers
👍 2 @bas-vk @obscuren
👎 0

Updated: Thu Nov 5 19:27:09 UTC 2015

@karalabe
Copy link
Member Author

karalabe commented Nov 4, 2015

@zelig Please take a look at this PR that it still works as originally intended.

@codecov-io
Copy link

Current coverage is 46.49%

Merging #1963 into develop will increase coverage by +0.05% as of 567f622

Powered by Codecov. Updated on successful CI builds.

@bas-vk
Copy link
Member

bas-vk commented Nov 5, 2015

👍

eth/backend.go Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix is nice and simple, so 👍. However, if you have the time, please make this a map[uint]bool instead.
Empty structs are nice but hurt readbility in this case.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing, will fix in a moment.

@karalabe
Copy link
Member Author

karalabe commented Nov 5, 2015

@fjl @bas-vk Got even simpler with your suggestion. PTAL.

@obscuren
Copy link
Contributor

obscuren commented Nov 5, 2015

👍

obscuren added a commit that referenced this pull request Nov 5, 2015
eth: fix error casting regression during database open
@obscuren obscuren merged commit 2334ee9 into ethereum:develop Nov 5, 2015
@obscuren obscuren removed the review label Nov 5, 2015
maoueh pushed a commit to streamingfast/go-ethereum that referenced this pull request Nov 29, 2023
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.

6 participants