Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-19364

PlanStages shouldn't have to track OperationContext pointers

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.1.7
    • Internal Code, Querying
    • None
    • Fully Compatible
    • Quint Iteration 7

    Description

      We discussed introducing a "PlanContext" struct to the query system similar to agg's ExpressionContext struct. This would hold all data that needs to be shared by all parts of a single query plan, including the WorkingSet and an OperationContext pointer. This would allow us to alter the OperationContext pointer in a single place during getmores rather than in each stage.

      Now just having PlanStage manage the OperationContext* in the base class rather than having the children stages manage their own.

      Attachments

        Activity

          People

            qingyang.chen Qingyang Chen
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: