From 57acc8b666b8c9dfc34eaf03c226ab26ac225781 Mon Sep 17 00:00:00 2001 From: Jacob Evans Date: Wed, 11 Dec 2019 21:33:49 +0000 Subject: SERVER-44475 Remove Query Knob --- src/mongo/db/commands/map_reduce_command.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/mongo/db/commands/map_reduce_command.cpp') 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; -- cgit v1.2.1