Allow opCtx to keep the memory tracker on detach

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      After SERVER-124190, the memory tracker is now a shared pointer. However, we still std::move() it off the opCtx on detach. This could be removed, but there is some behavior that relies on removing the memory tracker off the opCtx in exchange. See if we can change the behavior to allow the opCtx to also keep a copy to simplify understanding. See https://github.com/10gen/mongo/pull/59356#discussion_r3672423770 for more context.

            Assignee:
            Unassigned
            Reporter:
            Erin Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: