diff options
author | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2021-05-27 13:58:09 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-01 14:50:37 +0000 |
commit | 8ae3c7b68d9498ced22d966d00b30f3fada71c6e (patch) | |
tree | 43fc2cb1ee28cafd32d84d0fad54f43a914c54c6 /src/mongo | |
parent | dfe4d21d6d08a91cb40eeeb3bd8fadf0cb676790 (diff) | |
download | mongo-8ae3c7b68d9498ced22d966d00b30f3fada71c6e.tar.gz |
SERVER-56197 Remove feature flag for window functions
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/pipeline/document_source_set_window_fields.cpp | 13 | ||||
-rw-r--r-- | src/mongo/db/query/query_feature_flags.idl | 7 |
2 files changed, 4 insertions, 16 deletions
diff --git a/src/mongo/db/pipeline/document_source_set_window_fields.cpp b/src/mongo/db/pipeline/document_source_set_window_fields.cpp index 929690a0713..1e3f549edb7 100644 --- a/src/mongo/db/pipeline/document_source_set_window_fields.cpp +++ b/src/mongo/db/pipeline/document_source_set_window_fields.cpp @@ -37,7 +37,6 @@ #include "mongo/db/pipeline/document_source_set_window_fields_gen.h" #include "mongo/db/pipeline/document_source_sort.h" #include "mongo/db/pipeline/lite_parsed_document_source.h" -#include "mongo/db/query/query_feature_flags_gen.h" #include "mongo/db/query/query_knobs_gen.h" #include "mongo/db/query/sort_pattern.h" #include "mongo/util/visit_helper.h" @@ -74,23 +73,19 @@ bool modifiedSortPaths(const SortPattern& pat, const DocumentSource::GetModPaths } } // namespace -REGISTER_DOCUMENT_SOURCE_CONDITIONALLY( +REGISTER_DOCUMENT_SOURCE_WITH_MIN_VERSION( setWindowFields, LiteParsedDocumentSourceDefault::parse, document_source_set_window_fields::createFromBson, LiteParsedDocumentSource::AllowedWithApiStrict::kNeverInVersion1, - LiteParsedDocumentSource::AllowedWithClientType::kAny, - ServerGlobalParams::FeatureCompatibility::Version::kVersion50, - ::mongo::feature_flags::gFeatureFlagWindowFunctions.isEnabledAndIgnoreFCV()); + ServerGlobalParams::FeatureCompatibility::Version::kVersion50); -REGISTER_DOCUMENT_SOURCE_CONDITIONALLY( +REGISTER_DOCUMENT_SOURCE_WITH_MIN_VERSION( _internalSetWindowFields, LiteParsedDocumentSourceDefault::parse, DocumentSourceInternalSetWindowFields::createFromBson, LiteParsedDocumentSource::AllowedWithApiStrict::kNeverInVersion1, - LiteParsedDocumentSource::AllowedWithClientType::kAny, - ServerGlobalParams::FeatureCompatibility::Version::kVersion50, - ::mongo::feature_flags::gFeatureFlagWindowFunctions.isEnabledAndIgnoreFCV()); + ServerGlobalParams::FeatureCompatibility::Version::kVersion50); list<intrusive_ptr<DocumentSource>> document_source_set_window_fields::createFromBson( BSONElement elem, const intrusive_ptr<ExpressionContext>& expCtx) { diff --git a/src/mongo/db/query/query_feature_flags.idl b/src/mongo/db/query/query_feature_flags.idl index 5d9e5777415..63dc8c0c297 100644 --- a/src/mongo/db/query/query_feature_flags.idl +++ b/src/mongo/db/query/query_feature_flags.idl @@ -30,13 +30,6 @@ global: cpp_namespace: "mongo::feature_flags" feature_flags: - # TODO SERVER-56197: Remove feature flag. - featureFlagWindowFunctions: - description: "Feature flag for aggregation window function stage" - cpp_varname: gFeatureFlagWindowFunctions - default: true - version: 5.0 - featureFlagChangeStreamsOptimization: description: "Feature flag for enabling change streams optimization" cpp_varname: gFeatureFlagChangeStreamsOptimization |