fix(wavl): do not propagate deletion rebalance all the way

Do not propage bottom-up deletion rebalance all the way to the root.

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2022-05-06 09:47:03 +02:00
parent 68e6da262c
commit 0ef76257af
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -155,9 +155,6 @@ class WAVLTree extends AVLTree {
} }
deleteRebalance(node, parent) { deleteRebalance(node, parent) {
while (node || parent) {
this.deleteFixup(node, parent); this.deleteFixup(node, parent);
([node, parent] = parent), parent ? parent.parent : null;
}
} }
} }