diff options
Diffstat (limited to 'src/mongo/db/pipeline/accumulator_locf.cpp')
-rw-r--r-- | src/mongo/db/pipeline/accumulator_locf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/accumulator_locf.cpp b/src/mongo/db/pipeline/accumulator_locf.cpp index 9d7749e6a5a..01ac81bf029 100644 --- a/src/mongo/db/pipeline/accumulator_locf.cpp +++ b/src/mongo/db/pipeline/accumulator_locf.cpp @@ -41,8 +41,8 @@ namespace mongo { REGISTER_WINDOW_FUNCTION_CONDITIONALLY( locf, mongo::window_function::ExpressionFromLeftUnboundedWindowFunction<AccumulatorLocf>::parse, - multiversion::FeatureCompatibilityVersion::kVersion_5_2, - true); + feature_flags::gFeatureFlagLocf.getVersion(), + feature_flags::gFeatureFlagLocf.isEnabledAndIgnoreFCV()); AccumulatorLocf::AccumulatorLocf(ExpressionContext* const expCtx) : AccumulatorForWindowFunctions(expCtx) { |