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

Move management of aggregation "context" into AggregationPlan

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Query Integration

    Description

      AggregationPlan should manage ownership of the AutoGetCollectionForReadCommandMaybeLockFree, AutoStatsTracker, and MultipleCollectionAccessor used in the run_aggregate path to make lock and collection acquisition clearer along the path. With this change, we can also then avoid the passing of "initContext" and "resetContext" lambda captures as parameters throughout the file.

      This should warrant thinking of a better name than AggregationPlan to make it clear that the structure is holding important lock state.

      Attachments

        Activity

          People

            backlog-query-integration Backlog - Query Integration
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: