Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require_hint_crc value is ignored #101

Closed
evanmcc opened this issue Aug 20, 2013 · 1 comment
Closed

require_hint_crc value is ignored #101

evanmcc opened this issue Aug 20, 2013 · 1 comment

Comments

@evanmcc
Copy link
Contributor

evanmcc commented Aug 20, 2013

https://github.com/basho/bitcask/blob/1.6/src/bitcask_fileops.erl#L477 should return Acc, not <<>>. The empty binary looks sensible but it actually breaks the fold. This essentially forces require_hint_crc to true even though it defaults to false.

To fix this we need to change the line to return Acc, change the bulk crc check to not happen if require_hint_crc is false, and also to maintain safety, we should default require_hint_crc to true.

@slfritchie
Copy link
Contributor

Closing: fixed in develop at/earlier than this:

{done, Acc}

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

No branches or pull requests

2 participants