-
Notifications
You must be signed in to change notification settings - Fork 244
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
SortedMultiDict losing elements #773
Comments
Thanks for reporting this; I have confirmed the issue and am looking into it. |
I have created a pull request that fixes the bug. It would be great if the OP could also test the new code on their actual application. The fix is in a branch called fix_sortedmultidict_bug Here is the explanation of the bug. In order to insert a data item as a leaf in a balanced 2-3 tree, it is necessary to adjust ancestors of the leaf by splitting ancestor nodes and reconnecting them to children. When I originally wrote the balanced tree substrate in 2013, for some inexplicable reason, I wrote |
I can confirm that the fix works. Thanks for the quick response! |
I guess we can close this issue with the new release of 0.18.11. Should I make an announcement on discourse.julialang.org? I'm not sure how many users of SortedMultiDict are out there. |
I do not think it needs an announcement |
Running the above I get an assertion error:
Some of the items in the
SortedMultiDict
are lost after the last insert.The text was updated successfully, but these errors were encountered: