summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_plan_cache_stats.h
diff options
context:
space:
mode:
authorIan Boros <puppyofkosh@gmail.com>2019-05-13 18:19:38 -0400
committerIan Boros <puppyofkosh@gmail.com>2019-05-20 15:50:22 -0400
commit31967340abb31476910730163c04782f2e915d01 (patch)
treee21db441abdfbdf707f66f640796e3d8ee6ab6a8 /src/mongo/db/pipeline/document_source_plan_cache_stats.h
parent24760ca934a3c7843731de117839070ddf7fd3cc (diff)
downloadmongo-31967340abb31476910730163c04782f2e915d01.tar.gz
SERVER-40949 add LookupAllowed stage constraint
This bans $merge and $sB from $lookup subpipelines
Diffstat (limited to 'src/mongo/db/pipeline/document_source_plan_cache_stats.h')
-rw-r--r--src/mongo/db/pipeline/document_source_plan_cache_stats.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_plan_cache_stats.h b/src/mongo/db/pipeline/document_source_plan_cache_stats.h
index 9f5aed005b8..91283cea1ff 100644
--- a/src/mongo/db/pipeline/document_source_plan_cache_stats.h
+++ b/src/mongo/db/pipeline/document_source_plan_cache_stats.h
@@ -98,7 +98,8 @@ public:
HostTypeRequirement::kAnyShard,
DiskUseRequirement::kNoDiskUse,
FacetRequirement::kNotAllowed,
- TransactionRequirement::kNotAllowed};
+ TransactionRequirement::kNotAllowed,
+ LookupRequirement::kAllowed};
constraints.requiresInputDocSource = false;
return constraints;