diff options
author | Alya Berciu <alyacarina@gmail.com> | 2021-08-20 13:57:09 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-08-20 14:41:31 +0000 |
commit | 2d5f7632b30fa6b57992cd6db314ab2a5ca076a6 (patch) | |
tree | 46c46c9cf89d274eb20079927736a04b0ba89c6e /src/mongo/db/pipeline/lite_parsed_pipeline.cpp | |
parent | 083ee77d8a1644b78c1d94dbef86e73eecaeccff (diff) | |
download | mongo-2d5f7632b30fa6b57992cd6db314ab2a5ca076a6.tar.gz |
SERVER-38924 Remove blacklist entries for $lookup and $graphLookup FSM tests
Diffstat (limited to 'src/mongo/db/pipeline/lite_parsed_pipeline.cpp')
-rw-r--r-- | src/mongo/db/pipeline/lite_parsed_pipeline.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/lite_parsed_pipeline.cpp b/src/mongo/db/pipeline/lite_parsed_pipeline.cpp index 6c25f38573c..94f29755d9b 100644 --- a/src/mongo/db/pipeline/lite_parsed_pipeline.cpp +++ b/src/mongo/db/pipeline/lite_parsed_pipeline.cpp @@ -102,14 +102,16 @@ void LiteParsedPipeline::verifyIsSupported( const boost::optional<ExplainOptions::Verbosity> explain, bool enableMajorityReadConcern) const { // Verify litePipe can be run in a transaction. - if (opCtx->inMultiDocumentTransaction()) { + const bool inMultiDocumentTransaction = opCtx->inMultiDocumentTransaction(); + if (inMultiDocumentTransaction) { assertSupportsMultiDocumentTransaction(explain); } // Verify that no involved namespace is sharded unless allowed by the pipeline. for (const auto& nss : getInvolvedNamespaces()) { uassert(28769, str::stream() << nss.ns() << " cannot be sharded", - allowShardedForeignCollection(nss) || !isSharded(opCtx, nss)); + allowShardedForeignCollection(nss, inMultiDocumentTransaction) || + !isSharded(opCtx, nss)); } } |