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.cpp6
1 files changed, 4 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 52a61ab9325..746ba39c7bc 100644
--- a/src/mongo/s/commands/cluster_map_reduce_agg.cpp
+++ b/src/mongo/s/commands/cluster_map_reduce_agg.cpp
@@ -187,6 +187,7 @@ bool runAggregationMapReduce(OperationContext* opCtx,
cm,
involvedNamespaces,
false, // hasChangeStream
+ false, // startsWithDocuments
true, // allowedToPassthrough
false); // perShardCursor
try {
@@ -230,14 +231,15 @@ bool runAggregationMapReduce(OperationContext* opCtx,
namespaces,
privileges,
&tempResults,
- false)); // hasChangeStream
+ false, // hasChangeStream
+ false)); // startsWithDocuments
break;
}
case cluster_aggregation_planner::AggregationTargeter::TargetingPolicy::
kSpecificShardOnly: {
// It should not be possible to pass $_passthroughToShard to a map reduce command.
- MONGO_UNREACHABLE_TASSERT(6273803);
+ MONGO_UNREACHABLE_TASSERT(6273805);
}
}
} catch (DBException& e) {