diff options
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r-- | src/mongo/db/commands/run_aggregate.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mongo/db/commands/run_aggregate.cpp b/src/mongo/db/commands/run_aggregate.cpp index e62aa58a35d..6230b6da99d 100644 --- a/src/mongo/db/commands/run_aggregate.cpp +++ b/src/mongo/db/commands/run_aggregate.cpp @@ -688,12 +688,8 @@ Status runAggregate(OperationContext* opCtx, // Determine if this aggregation has foreign collections that the execution subsystem needs // to be aware of. - std::vector<NamespaceStringOrUUID> secondaryExecNssList; - - // Taking locks over multiple collections is not supported outside of $lookup pushdown. - if (feature_flags::gFeatureFlagSBELookupPushdown.isEnabledAndIgnoreFCV()) { - secondaryExecNssList = liteParsedPipeline.getForeignExecutionNamespaces(); - } + std::vector<NamespaceStringOrUUID> secondaryExecNssList = + liteParsedPipeline.getForeignExecutionNamespaces(); // The collation to use for this aggregation. boost::optional to distinguish between the case // where the collation has not yet been resolved, and where it has been resolved to nullptr. |