summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_set_window_fields.cpp
diff options
context:
space:
mode:
authorNick Zolnierz <nicholas.zolnierz@mongodb.com>2021-05-27 13:58:09 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-01 14:50:37 +0000
commit8ae3c7b68d9498ced22d966d00b30f3fada71c6e (patch)
tree43fc2cb1ee28cafd32d84d0fad54f43a914c54c6 /src/mongo/db/pipeline/document_source_set_window_fields.cpp
parentdfe4d21d6d08a91cb40eeeb3bd8fadf0cb676790 (diff)
downloadmongo-8ae3c7b68d9498ced22d966d00b30f3fada71c6e.tar.gz
SERVER-56197 Remove feature flag for window functions
Diffstat (limited to 'src/mongo/db/pipeline/document_source_set_window_fields.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_set_window_fields.cpp13
1 files changed, 4 insertions, 9 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) {