diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2020-09-02 12:07:23 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-12-01 20:00:06 +0000 |
commit | a71a2a8bfecf7de0807a28e3eabf9412dddd4258 (patch) | |
tree | 44f7728d23d755e87a6fef8bb3e2b60bf5d82784 /src/mongo/s/query/cluster_aggregate.cpp | |
parent | 1fba06eafa75520fb7ded3103f3832465023c6be (diff) | |
download | mongo-a71a2a8bfecf7de0807a28e3eabf9412dddd4258.tar.gz |
SERVER-47398 Start sending 'let' for aggregates.
Replaces usages of 'runtimeConstants' with 'let' parameters. This does
not replace usages for the write commands and for $merge. We will need
follow-up work for that.
Diffstat (limited to 'src/mongo/s/query/cluster_aggregate.cpp')
-rw-r--r-- | src/mongo/s/query/cluster_aggregate.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/s/query/cluster_aggregate.cpp b/src/mongo/s/query/cluster_aggregate.cpp index d10d4133e2a..44e6fc0317e 100644 --- a/src/mongo/s/query/cluster_aggregate.cpp +++ b/src/mongo/s/query/cluster_aggregate.cpp @@ -289,7 +289,8 @@ Status ClusterAggregate::runAggregate(OperationContext* opCtx, // passthrough, we only need a bare minimum expression context anyway. invariant(targeter.policy == cluster_aggregation_planner::AggregationTargeter::kPassthrough); - expCtx = make_intrusive<ExpressionContext>(opCtx, nullptr, namespaces.executionNss); + expCtx = make_intrusive<ExpressionContext>( + opCtx, nullptr, namespaces.executionNss, boost::none, request.getLetParameters()); } if (request.getExplain()) { |