summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/map_reduce_command.cpp
diff options
context:
space:
mode:
authorJacob Evans <jacob.evans@mongodb.com>2019-12-11 21:33:49 +0000
committerevergreen <evergreen@mongodb.com>2019-12-11 21:33:49 +0000
commit57acc8b666b8c9dfc34eaf03c226ab26ac225781 (patch)
tree1a0971f0cce77fc5178fc48952770dc164818b22 /src/mongo/db/commands/map_reduce_command.cpp
parent3da6513067131a50323f3388b8dc2918da885732 (diff)
downloadmongo-57acc8b666b8c9dfc34eaf03c226ab26ac225781.tar.gz
SERVER-44475 Remove Query Knob
Diffstat (limited to 'src/mongo/db/commands/map_reduce_command.cpp')
-rw-r--r--src/mongo/db/commands/map_reduce_command.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/commands/map_reduce_command.cpp b/src/mongo/db/commands/map_reduce_command.cpp
index c605affd325..5cae9c1e228 100644
--- a/src/mongo/db/commands/map_reduce_command.cpp
+++ b/src/mongo/db/commands/map_reduce_command.cpp
@@ -78,11 +78,9 @@ private:
// Execute the mapReduce as an aggregation pipeline only if fully upgraded to 4.4, since
// a 4.2 mongos in a mixed version cluster expects a fundamentally different response that
// is not supported by the aggregation equivalent.
- if (internalQueryUseAggMapReduce.load() &&
- serverGlobalParams.featureCompatibility.getVersion() ==
- ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo44) {
+ if (serverGlobalParams.featureCompatibility.getVersion() ==
+ ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo44)
return map_reduce_agg::runAggregationMapReduce(opCtx, cmd, result, boost::none);
- }
return mr::runMapReduce(opCtx, dbname, cmd, errmsg, result);
}
} mapReduceCommand;