SERVER-86887ClosedFixed

Remove cross-stage use of SlotAccessor::copyOrMoveValue

Remove cross-stage use of SlotAccessor::copyOrMoveValue. copyOrMoveValue is unsafe when combined with loopy or unwindy stages and can lead to segfaults:   buffering and keep the value in scope until EOF or child EOF is insufficient, and will segfault when combined with correlated variables:   Similar problem exists in PlanExecutor use of copyOrMoveValue. This optimization targets the mkObj + PlanExecutor combination, where we want to avoid making extra copy when converting resul

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
8.0.0-rc0
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.