summaryrefslogtreecommitdiff
path: root/src/mongo/s
diff options
context:
space:
mode:
authorNick Zolnierz <nicholas.zolnierz@mongodb.com>2018-08-15 15:04:47 -0400
committerNick Zolnierz <nicholas.zolnierz@mongodb.com>2018-08-21 10:32:03 -0400
commit14c53602360e9c223e70f97c2b08760df194f996 (patch)
treec777316dfa8aa7474d148e50a5cb0854e090f4b7 /src/mongo/s
parent8a38c643f39e8f6a7afcd888a85f09800e3de2a1 (diff)
downloadmongo-14c53602360e9c223e70f97c2b08760df194f996.tar.gz
SERVER-36667: Add ability to have a mixture of sharded and unsharded foreign namespaces in an aggregation
Diffstat (limited to 'src/mongo/s')
-rw-r--r--src/mongo/s/query/cluster_aggregate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/query/cluster_aggregate.cpp b/src/mongo/s/query/cluster_aggregate.cpp
index 151de50c736..0f413652c12 100644
--- a/src/mongo/s/query/cluster_aggregate.cpp
+++ b/src/mongo/s/query/cluster_aggregate.cpp
@@ -751,7 +751,7 @@ StringMap<ExpressionContext::ResolvedNamespace> resolveInvolvedNamespaces(
uassertStatusOK(Grid::get(opCtx)->catalogCache()->getCollectionRoutingInfo(opCtx, nss));
uassert(28769,
str::stream() << nss.ns() << " cannot be sharded",
- !resolvedNsRoutingInfo.cm() || litePipe.allowShardedForeignCollections());
+ !resolvedNsRoutingInfo.cm() || litePipe.allowShardedForeignCollection(nss));
resolvedNamespaces.try_emplace(nss.coll(), nss, std::vector<BSONObj>{});
}
return resolvedNamespaces;