-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
util: wrong memory count when use Tracker.ReplaceChild() (#14513) #14533
util: wrong memory count when use Tracker.ReplaceChild() (#14513) #14533
Conversation
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry @SunRunAway, you don't have permission to trigger auto merge event on this branch. |
Sorry @SunRunAway, you don't have permission to trigger auto merge event on this branch. |
/run-all-tests |
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@sre-bot merge failed. |
/merge |
Sorry @you06, you don't have permission to trigger auto merge event on this branch. |
/merge |
Your auto merge job has been accepted, waiting for 14536 |
/run-all-tests |
cherry-pick #14513 to release-3.0
What problem does this PR solve?
When we use
Tracker.ReplaceChild()
to replace/remove child, is only updates the result for the parent, but not updates the nodes in the path of the tracker tree recursively.What is changed and how it works?
Use
t.Consume(bytes)
to update the result.Check List
Tests
Code changes
Side effects
Related changes
Release note
Fix a potential memory count problem.