summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_map_reduce_agg.cpp
diff options
context:
space:
mode:
authorPawel Terlecki <pawel.terlecki@mongodb.com>2020-06-08 19:41:12 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-11 22:16:43 +0000
commit41fd8b2a5b227dda18ab81da51e10ecafcf64a52 (patch)
treeb5fd15ce19f51b02d2cbcb905f12e9dc32c511f7 /src/mongo/s/commands/cluster_map_reduce_agg.cpp
parenta470fda78b89e8eee045ff76a7fed44da8f6700c (diff)
downloadmongo-41fd8b2a5b227dda18ab81da51e10ecafcf64a52.tar.gz
SERVER-46716: Add tests for let parameters for sharded update
Made cosmetic changes for the sake of consistency.
Diffstat (limited to 'src/mongo/s/commands/cluster_map_reduce_agg.cpp')
-rw-r--r--src/mongo/s/commands/cluster_map_reduce_agg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_map_reduce_agg.cpp b/src/mongo/s/commands/cluster_map_reduce_agg.cpp
index 224e82dc6ca..7908cdec77b 100644
--- a/src/mongo/s/commands/cluster_map_reduce_agg.cpp
+++ b/src/mongo/s/commands/cluster_map_reduce_agg.cpp
@@ -118,9 +118,9 @@ Document serializeToCommand(BSONObj originalCmd, const MapReduce& parsedMr, Pipe
Value(Document{{"batchSize", std::numeric_limits<long long>::max()}});
translatedCmd[AggregationRequest::kAllowDiskUseName] = Value(true);
translatedCmd[AggregationRequest::kFromMongosName] = Value(true);
- translatedCmd[AggregationRequest::kRuntimeConstants] =
+ translatedCmd[AggregationRequest::kRuntimeConstantsName] =
Value(pipeline->getContext()->getRuntimeConstants().toBSON());
- translatedCmd[AggregationRequest::kIsMapReduceCommand] = Value(true);
+ translatedCmd[AggregationRequest::kIsMapReduceCommandName] = Value(true);
if (shouldBypassDocumentValidationForCommand(originalCmd)) {
translatedCmd[bypassDocumentValidationCommandOption()] = Value(true);