summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_map_reduce_agg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/commands/cluster_map_reduce_agg.cpp')
-rw-r--r--src/mongo/s/commands/cluster_map_reduce_agg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_map_reduce_agg.cpp b/src/mongo/s/commands/cluster_map_reduce_agg.cpp
index 58ac2b0129e..3f23738d141 100644
--- a/src/mongo/s/commands/cluster_map_reduce_agg.cpp
+++ b/src/mongo/s/commands/cluster_map_reduce_agg.cpp
@@ -132,7 +132,7 @@ Document serializeToCommand(BSONObj originalCmd, const MapReduce& parsedMr, Pipe
}
// Append generic command options.
- for (const auto& elem : CommandHelpers::appendPassthroughFields(originalCmd, BSONObj())) {
+ for (const auto& elem : CommandHelpers::appendGenericCommandArgs(originalCmd, BSONObj())) {
translatedCmd[elem.fieldNameStringData()] = Value(elem);
}
return translatedCmd.freeze();