summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/sbe/stages/union.cpp
diff options
context:
space:
mode:
authorRui Liu <rui.liu@mongodb.com>2022-06-22 09:52:36 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-06-22 10:42:32 +0000
commit2c2d85e73d0620d779544ce67218db171c154e8b (patch)
treec6172fde4fb0500c2254ceaf9cd92ac14c8b128d /src/mongo/db/exec/sbe/stages/union.cpp
parentad2b9ae23ad19f871f2033dc338c96ad9aa8d161 (diff)
downloadmongo-2c2d85e73d0620d779544ce67218db171c154e8b.tar.gz
SERVER-64432 Integrate SBE plan cache for $lookup
Diffstat (limited to 'src/mongo/db/exec/sbe/stages/union.cpp')
-rw-r--r--src/mongo/db/exec/sbe/stages/union.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mongo/db/exec/sbe/stages/union.cpp b/src/mongo/db/exec/sbe/stages/union.cpp
index a661e6c579f..2fd6d0b4fc5 100644
--- a/src/mongo/db/exec/sbe/stages/union.cpp
+++ b/src/mongo/db/exec/sbe/stages/union.cpp
@@ -38,8 +38,9 @@ namespace mongo::sbe {
UnionStage::UnionStage(PlanStage::Vector inputStages,
std::vector<value::SlotVector> inputVals,
value::SlotVector outputVals,
- PlanNodeId planNodeId)
- : PlanStage("union"_sd, planNodeId),
+ PlanNodeId planNodeId,
+ bool participateInTrialRunTracking)
+ : PlanStage("union"_sd, planNodeId, participateInTrialRunTracking),
_inputVals{std::move(inputVals)},
_outputVals{std::move(outputVals)} {
_children = std::move(inputStages);
@@ -57,8 +58,11 @@ std::unique_ptr<PlanStage> UnionStage::clone() const {
for (auto& child : _children) {
inputStages.emplace_back(child->clone());
}
- return std::make_unique<UnionStage>(
- std::move(inputStages), _inputVals, _outputVals, _commonStats.nodeId);
+ return std::make_unique<UnionStage>(std::move(inputStages),
+ _inputVals,
+ _outputVals,
+ _commonStats.nodeId,
+ _participateInTrialRunTracking);
}
void UnionStage::prepare(CompileCtx& ctx) {