diff options
author | Gregory Noma <gregory.noma@gmail.com> | 2022-10-26 13:18:07 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-11-04 20:27:17 +0000 |
commit | bb65f34a5728db4f94efef7ced07ef2310e69eb8 (patch) | |
tree | 1b731f145092e19e059739836924b365f180eb2c | |
parent | 6a5faba612b86518985d33a5d23954be10530a5d (diff) | |
download | mongo-bb65f34a5728db4f94efef7ced07ef2310e69eb8.tar.gz |
SERVER-70725 Narrow errors resulting in `CollectionUUIDMismatch` in cluster aggregate
(cherry picked from commit 85a50585a0b5ea5b174dbb0c8678a85d68ac5d4e)
-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 6a0b135fef4..4f7586f4fa7 100644 --- a/src/mongo/s/query/cluster_aggregate.cpp +++ b/src/mongo/s/query/cluster_aggregate.cpp @@ -330,7 +330,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, |