[SERVER-62495] Ensure that CompileCtx::accumulator is set before accessing it Created: 10/Jan/22 Updated: 26/Jul/22 Resolved: 26/Jul/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Anna Wawrzyniak | Assignee: | Erin Zhu |
| Resolution: | Done | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Sprint: | QE 2022-06-27, QE 2022-07-11, QE 2022-07-25, QE 2022-08-08 | ||||||||
| Participants: | |||||||||
| Description |
|
CompileCtx::accumulator is accessed when compiling EFunction related to aggregate. This requires a corresponding assignment before the compile is called, like in HashAggStage::prepare At minimum we should assert that the CompileCtx::accessor is set to prevent segfault. |
| Comments |
| Comment by Githook User [ 24/Jun/22 ] |
|
Author: {'name': 'Erin Zhu', 'email': 'erin.zhu@mongodb.com', 'username': 'erinzhu001'}Message: |