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

BTree concatenation, set operations sometimes corrupt their input trees #19

Closed
lorentey opened this issue Nov 4, 2016 · 1 comment
Closed
Labels

Comments

@lorentey
Copy link
Collaborator

lorentey commented Nov 4, 2016

In some cases, appending the same tree multiple times to a BTreeBuilder may corrupt the original (read-only) tree.

I am unable to reproduce this with constructs from 3.1.0, but it is reasonably easy to do it with the new bag operations on master.

@lorentey lorentey added the bug label Nov 4, 2016
lorentey added a commit that referenced this issue Nov 4, 2016
@lorentey
Copy link
Collaborator Author

lorentey commented Nov 4, 2016

This was due to a missing makeChildUnique() call in BTreeNode.shiftSlots. Whew.

@lorentey lorentey closed this as completed Nov 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant