QuerySolutionNode should hold its children by unique_ptr

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: Querying
    • Fully Compatible
    • QO 2022-04-18, QO 2022-05-02
    • 72
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Right now, it holds its children as a vector of owned raw pointers, despite unique ownership semantics:

      https://github.com/mongodb/mongo/blob/1c9354d71c835820f46e5cc557e604b1d602debd/src/mongo/db/query/query_solution.h#L147-L148

              Assignee:
              David Percy (Inactive)
              Reporter:
              David Storch
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: