diff options
author | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2018-08-15 15:04:47 -0400 |
---|---|---|
committer | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2018-08-21 10:32:03 -0400 |
commit | 14c53602360e9c223e70f97c2b08760df194f996 (patch) | |
tree | c777316dfa8aa7474d148e50a5cb0854e090f4b7 /src/mongo/s | |
parent | 8a38c643f39e8f6a7afcd888a85f09800e3de2a1 (diff) | |
download | mongo-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.cpp | 2 |
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; |