Declare and initialize expCtx and execs together in runAggregate()

XMLWordPrintableJSON

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

      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
              Reporter:
              Erin Liang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: