summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/sbe_runtime_planner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/sbe_runtime_planner.cpp')
-rw-r--r--src/mongo/db/query/sbe_runtime_planner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/sbe_runtime_planner.cpp b/src/mongo/db/query/sbe_runtime_planner.cpp
index ef809d1cec6..fe6df1f1b11 100644
--- a/src/mongo/db/query/sbe_runtime_planner.cpp
+++ b/src/mongo/db/query/sbe_runtime_planner.cpp
@@ -66,7 +66,7 @@ bool fetchNextDocument(plan_ranker::CandidatePlan* candidate,
}
invariant(state == sbe::PlanState::ADVANCED);
- candidate->results.push({std::move(obj), {recordIdSlot != nullptr, recordId}});
+ candidate->results.push({obj.getOwned(), {recordIdSlot != nullptr, recordId}});
} catch (const ExceptionFor<ErrorCodes::QueryTrialRunCompleted>&) {
candidate->exitedEarly = true;
return true;