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

fix cfilter.Insert(...) rebalancing #9

Merged
merged 1 commit into from
Dec 28, 2016

Conversation

ridwanmsharif
Copy link
Contributor

Fixes #8.
The modulo operator was incorrectly being applied to the result of
the hash function, the result of which was then XOR-ed to be the new search
index. This opened up the possibility for the index to be greater than the
filter size resulting in an index out of range panic.

Fixes irfansharif#8.
The modulo operator was incorrectly being applied to the result of
the hashfunction, the result of which was then XOR-ed to be the new search
index. This opened up the possibility for the index to be greater than the
filter size resulting in an index out of range panic.
@irfansharif
Copy link
Owner

LGTM.

@irfansharif irfansharif merged commit 60a6474 into irfansharif:master Dec 28, 2016
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.

2 participants