summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/window_function
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/window_function
parent6fff22b45e500c5b26317cc536fa9b73bfe72b6b (diff)
downloadmongo-274ef1d81896afd0502632b62069da1c9f82f575.tar.gz
SERVER-58072 Changed unnecessary uses of isEnabledAndIgnoreFCV() to isEnabled(serverGlobalParams.featureCompatibility)
Diffstat (limited to 'src/mongo/db/pipeline/window_function')
-rw-r--r--src/mongo/db/pipeline/window_function/window_function_expression.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/window_function/window_function_expression.cpp b/src/mongo/db/pipeline/window_function/window_function_expression.cpp
index 0a37571d02e..118db84f280 100644
--- a/src/mongo/db/pipeline/window_function/window_function_expression.cpp
+++ b/src/mongo/db/pipeline/window_function/window_function_expression.cpp
@@ -233,7 +233,8 @@ boost::intrusive_ptr<Expression> ExpressionMinMaxN<S>::parse(
str::stream() << "Cannot create " << name
<< " accumulator in $setWindowFields"
" if feature flag is disabled",
- feature_flags::gFeatureFlagExactTopNAccumulator.isEnabledAndIgnoreFCV());
+ feature_flags::gFeatureFlagExactTopNAccumulator.isEnabled(
+ serverGlobalParams.featureCompatibility));
boost::intrusive_ptr<::mongo::Expression> nExpr;
boost::intrusive_ptr<::mongo::Expression> outputExpr;