Skip to content

Conversation

AlexanderS
Copy link

We could have multiple keys with the same hash sum in the CDB. So we
should not abort cdb_findnext if we found the hash, but it did not
matched the key to find.

This regression was introduced in f20fc80.

This fixes #26.

We could have multiple keys with the same hash sum in the CDB. So we
should not abort cdb_findnext if we found the hash, but it did not
matched the key to find.

This regression was introduced in f20fc80.
@toddr
Copy link
Owner

toddr commented Apr 7, 2022

I know I'm being picky, but I'd like to see a test on this. I'm concerned that not tests were changed here. Can you give me an approximate database so I can simulate the failure?

@AlexanderS
Copy link
Author

AlexanderS commented Apr 8, 2022

The test is basically in #26 but I can try to add a test.

@AlexanderS
Copy link
Author

I just added the test from the issue. The test would fail without the fix.

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.

Cannot read colliding keys
2 participants