summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_lookup.h
diff options
context:
space:
mode:
authorMilitsa Sotirova <militsa.sotirova@mongodb.com>2021-06-21 18:00:06 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-07-01 13:45:52 +0000
commit3f0bedf42873fdf53a0ee3c38d98847d8359c602 (patch)
tree2cdcdd2e1727221f050cea375bf37d2cc7585f3f /src/mongo/db/pipeline/document_source_lookup.h
parenta969d643218bd3df38ff57709949350fceab44d2 (diff)
downloadmongo-3f0bedf42873fdf53a0ee3c38d98847d8359c602.tar.gz
SERVER-52021: Create feature flag for support lookup and graphLookup into a sharded collection
Diffstat (limited to 'src/mongo/db/pipeline/document_source_lookup.h')
-rw-r--r--src/mongo/db/pipeline/document_source_lookup.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_lookup.h b/src/mongo/db/pipeline/document_source_lookup.h
index 75a2fc42a4e..29df6539f17 100644
--- a/src/mongo/db/pipeline/document_source_lookup.h
+++ b/src/mongo/db/pipeline/document_source_lookup.h
@@ -76,8 +76,8 @@ public:
* Lookup from a sharded collection may not be allowed.
*/
bool allowShardedForeignCollection(NamespaceString nss) const override final {
- const bool foreignShardedAllowed =
- getTestCommandsEnabled() && internalQueryAllowShardedLookup.load();
+ const bool foreignShardedAllowed = feature_flags::gFeatureFlagShardedLookup.isEnabled(
+ serverGlobalParams.featureCompatibility);
if (foreignShardedAllowed) {
return true;
}