summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/projection_executor_builder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/projection_executor_builder.cpp')
-rw-r--r--src/mongo/db/exec/projection_executor_builder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/projection_executor_builder.cpp b/src/mongo/db/exec/projection_executor_builder.cpp
index f5e94be3f78..1b712685ea9 100644
--- a/src/mongo/db/exec/projection_executor_builder.cpp
+++ b/src/mongo/db/exec/projection_executor_builder.cpp
@@ -251,7 +251,7 @@ auto buildProjectionExecutor(boost::intrusive_ptr<ExpressionContext> expCtx,
const ProjectionPolicies policies,
const BuilderParamsBitSet params) {
ProjectionExecutorVisitorContext<Executor> context{
- {std::make_unique<Executor>(expCtx, policies, params[kAllowFastPath], *root), expCtx}};
+ {std::make_unique<Executor>(expCtx, policies, params[kAllowFastPath]), expCtx}};
ProjectionExecutorVisitor<Executor> executorVisitor{&context};
projection_ast::PathTrackingWalker walker{&context, {&executorVisitor}, {}};
tree_walker::walk<true, projection_ast::ASTNode>(root, &walker);