Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3750: [docdb] Deregister callback for common mem trackers from root …
…mem tracker in destructor of vector Summary: Tree of `MemTrackers` is organized so that a node maintains pointers to all nodes along the path to root. Hence (almost) all traversal is in the upward direction. But common `MemTracker`s are accessed from the root - i.e., in the downward direction. In the destructor of a common `MemTracker`, an upward traversal to root is followed by a downward traversal back into vector of common `MemTracker`s. This vector should not be accessed by root mem tracker once any common mem tracker in it is destroyed. Prevent vector access from root mem tracker by setting the lambda for downward traversal to null in the destructor of vector. Test Plan: Jenkins Reviewers: amitanand, bogdan, sergei Reviewed By: sergei Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D8087
- Loading branch information