summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/query/sbe_stage_builder_helpers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/sbe_stage_builder_helpers.cpp b/src/mongo/db/query/sbe_stage_builder_helpers.cpp
index 80fcdf7df0b..71015bef45f 100644
--- a/src/mongo/db/query/sbe_stage_builder_helpers.cpp
+++ b/src/mongo/db/query/sbe_stage_builder_helpers.cpp
@@ -311,7 +311,7 @@ std::pair<sbe::value::SlotId, EvalStage> projectEvalExpr(
sbe::value::SlotIdGenerator* slotIdGenerator) {
// If expr's value is already in a slot, return the slot.
if (expr.getSlot()) {
- return {*expr.getSlot(), std::move(stage)};
+ return {*expr.getSlot(), stageOrLimitCoScan(std::move(stage), planNodeId)};
}
// If expr's value is an expression, create a ProjectStage to evaluate the expression