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

Ensure that CompileCtx::accumulator is set before accessing it

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • QE 2022-06-27, QE 2022-07-11, QE 2022-07-25, QE 2022-08-08

      CompileCtx::accumulator is accessed when compiling EFunction related to aggregate.

      This requires a corresponding assignment before the compile is called, like in HashAggStage::prepare

       
      Otherwise, CompileCtx::accessor is optional.

      At minimum we should assert that the CompileCtx::accessor is set to prevent segfault.

            Assignee:
            erin.zhu@mongodb.com Erin Zhu
            Reporter:
            anna.wawrzyniak@mongodb.com Anna Wawrzyniak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: