diff options
author | Militsa Sotirova <militsa.sotirova@mongodb.com> | 2021-06-21 18:00:06 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-01 13:45:52 +0000 |
commit | 3f0bedf42873fdf53a0ee3c38d98847d8359c602 (patch) | |
tree | 2cdcdd2e1727221f050cea375bf37d2cc7585f3f /src/mongo/db/pipeline/document_source_lookup.h | |
parent | a969d643218bd3df38ff57709949350fceab44d2 (diff) | |
download | mongo-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.h | 4 |
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; } |