summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/accumulator_multi.cpp
diff options
context:
space:
mode:
authorJennifer Peshansky <jennifer.peshansky@mongodb.com>2021-08-27 22:07:20 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-09-03 22:35:52 +0000
commit274ef1d81896afd0502632b62069da1c9f82f575 (patch)
tree1694925adea604bfd34d6a96c9d5788dd57ae913 /src/mongo/db/pipeline/accumulator_multi.cpp
parent6fff22b45e500c5b26317cc536fa9b73bfe72b6b (diff)
downloadmongo-274ef1d81896afd0502632b62069da1c9f82f575.tar.gz
SERVER-58072 Changed unnecessary uses of isEnabledAndIgnoreFCV() to isEnabled(serverGlobalParams.featureCompatibility)
Diffstat (limited to 'src/mongo/db/pipeline/accumulator_multi.cpp')
-rw-r--r--src/mongo/db/pipeline/accumulator_multi.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/accumulator_multi.cpp b/src/mongo/db/pipeline/accumulator_multi.cpp
index 4c27b381df3..4dc6c807dce 100644
--- a/src/mongo/db/pipeline/accumulator_multi.cpp
+++ b/src/mongo/db/pipeline/accumulator_multi.cpp
@@ -185,7 +185,8 @@ AccumulationExpression AccumulatorMinMaxN::parseMinMaxN(ExpressionContext* const
// macros above are updated accordingly.
uassert(5787909,
str::stream() << "Cannot create " << name << " accumulator if feature flag is disabled",
- feature_flags::gFeatureFlagExactTopNAccumulator.isEnabledAndIgnoreFCV());
+ feature_flags::gFeatureFlagExactTopNAccumulator.isEnabled(
+ serverGlobalParams.featureCompatibility));
uassert(5787900,
str::stream() << "specification must be an object; found " << elem,
elem.type() == BSONType::Object);
@@ -280,7 +281,8 @@ AccumulationExpression AccumulatorFirstLastN::parseFirstLastN(ExpressionContext*
// macros above are updated accordingly.
uassert(5787800,
str::stream() << "Cannot create " << name << " accumulator if feature flag is disabled",
- feature_flags::gFeatureFlagExactTopNAccumulator.isEnabledAndIgnoreFCV());
+ feature_flags::gFeatureFlagExactTopNAccumulator.isEnabled(
+ serverGlobalParams.featureCompatibility));
uassert(5787801,
str::stream() << "specification must be an object; found " << elem,
elem.type() == BSONType::Object);