-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`AATreeItem::Rebalance` did not correctly update the parent of a node when rebalancing a subtree. As a result, when the subtree root was rebalanced into a different position, such as a leaf node, other nodes could become orphaned. The unit tests did not include enough items to encounter this error. The default number of items has been doubled, which triggers the error without the corresponding fix. Change-Id: I7ae4140673d2e1d30b8e193d3750201a4b2ca8a5 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/237415 Commit-Queue: Aaron Green <[email protected]> Docs-Not-Needed: Aaron Green <[email protected]> Presubmit-Verified: CQ Bot Account <[email protected]> Reviewed-by: Wyatt Hepler <[email protected]> Lint: Lint 🤖 <[email protected]>
- Loading branch information
1 parent
4c5e994
commit 92ab032
Showing
3 changed files
with
175 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.