Skip to content

Conversation

PhilboXie
Copy link

… them, there are still users in the cache after deletion, and these users can never be deleted!, His ID was lost in rdnIdx, but the value of parentIdAndRdn. getNbChild() did not decrease.

Problem discovered: In order to balance the tree, there will be multiple left and right rotations, resulting in multiple threads executing methods and confusing assignment, leading to ID loss.

… them, there are still users in the cache after deletion, and these users can never be deleted!, His ID was lost in rdnIdx, but the value of parentIdAndRdn. getNbChild() did not decrease.

Problem discovered: In order to balance the tree, there will be multiple left and right rotations, resulting in multiple threads executing methods and confusing assignment, leading to ID loss.
@elecharny
Copy link
Contributor

You are damn right !!!

This part of the code is absolutely going to be used in a multi-threaded env, and needs some synchronisation.

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