summaryrefslogtreecommitdiff
path: root/src/mongo/s/query/cluster_aggregate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/query/cluster_aggregate.cpp')
-rw-r--r--src/mongo/s/query/cluster_aggregate.cpp3
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 99dff9da625..ae2f7a87e65 100644
--- a/src/mongo/s/query/cluster_aggregate.cpp
+++ b/src/mongo/s/query/cluster_aggregate.cpp
@@ -334,7 +334,8 @@ Status ClusterAggregate::runAggregate(OperationContext* opCtx,
request.getNamespace().coll().toString(),
boost::none),
"Database does not exist",
- !request.getCollectionUUID());
+ executionNsRoutingInfoStatus != ErrorCodes::NamespaceNotFound ||
+ !request.getCollectionUUID());
if (liteParsedPipeline.startsWithCollStats()) {
uassertStatusOKWithContext(executionNsRoutingInfoStatus,