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 BptreeMap range iter adjacent leaves #120

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

Erigara
Copy link
Contributor

@Erigara Erigara commented Jun 25, 2024

Continuation of #118.

Description for the edge case is in the comment.

I haven't found a way to check if one leaf is ahead of another.
So i took an advantage of the fact that we are advancing leaf iterators one at a time.
I.e. before advancing right/left leaf iterator we check if they are pointing to the same node and if so there is no elements left.

@Firstyear Firstyear merged commit 8e1bd22 into kanidm:master Jun 26, 2024
2 checks passed
@Firstyear
Copy link
Member

Thank you! I'm so sorry you had so many problems with the iterators :(

@Erigara
Copy link
Contributor Author

Erigara commented Jun 26, 2024

No problem, glad it fixed now

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