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

Declare and initialize expCtx and execs together in runAggregate()

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Fully Compatible

      Right now, execs and expCtx are declared well before they are initialized. After the scope removal in  SERVER-98074, it is no longer necessary to separate the declaration from the initialization.  We can just declare and initialize expCtx / execs in one line so it is even more clear where we are using these variables in the top-level runAggregate() path.

            Assignee:
            erin.liang@mongodb.com Erin Liang
            Reporter:
            erin.liang@mongodb.com Erin Liang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: