diff options
author | Hana Pearlman <hana.pearlman@mongodb.com> | 2021-07-15 19:16:32 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-15 20:00:28 +0000 |
commit | 8343cf83a31d03c07aefd32674bcf93820bb2947 (patch) | |
tree | 3f0212b843fee4c6465fc8e06d2c70a5bb3e6215 /src/mongo/db/pipeline/document_source_lookup.h | |
parent | 12c7f0f5198a03815ad152fd2f693eb08515cb2b (diff) | |
download | mongo-8343cf83a31d03c07aefd32674bcf93820bb2947.tar.gz |
SERVER-39048, SERVER-57957: ban sharded $lookup and $graphLookup in a transaction
Diffstat (limited to 'src/mongo/db/pipeline/document_source_lookup.h')
-rw-r--r-- | src/mongo/db/pipeline/document_source_lookup.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/document_source_lookup.h b/src/mongo/db/pipeline/document_source_lookup.h index 29df6539f17..c40cb118b55 100644 --- a/src/mongo/db/pipeline/document_source_lookup.h +++ b/src/mongo/db/pipeline/document_source_lookup.h @@ -310,6 +310,11 @@ private: */ void appendSpecificExecStats(MutableDocument& doc) const; + /** + * Returns true if 'featureFlagShardedLookup' is enabled and we are not in a transaction. + */ + bool foreignShardedLookupAllowed() const; + DocumentSourceLookupStats _stats; NamespaceString _fromNs; |