summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZahra Poonevala <zahra.poonevala@mongodb.com>2022-07-13 22:24:19 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-07-13 23:09:02 +0000
commit9e61e92be3280c8ea342a255894ee1960c706171 (patch)
treedace3ffb3d561d9c61a9abf61f51f0246c65ba23 /src
parent2fdf4082d295151b4a8d3eccf2c00f8b0f102386 (diff)
downloadmongo-9e61e92be3280c8ea342a255894ee1960c706171.tar.gz
SERVER-67585: first changes
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/pipeline/document_source_fill.cpp4
-rw-r--r--src/mongo/db/pipeline/window_function/window_function_expression.cpp6
-rw-r--r--src/mongo/db/query/query_feature_flags.idl8
3 files changed, 4 insertions, 14 deletions
diff --git a/src/mongo/db/pipeline/document_source_fill.cpp b/src/mongo/db/pipeline/document_source_fill.cpp
index 755b1f397df..870e719325b 100644
--- a/src/mongo/db/pipeline/document_source_fill.cpp
+++ b/src/mongo/db/pipeline/document_source_fill.cpp
@@ -47,8 +47,8 @@ REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(fill,
document_source_fill::createFromBson,
AllowedWithApiStrict::kNeverInVersion1,
AllowedWithClientType::kAny,
- feature_flags::gFeatureFlagFill.getVersion(),
- feature_flags::gFeatureFlagFill.isEnabledAndIgnoreFCV());
+ boost::none,
+ true);
namespace document_source_fill {
std::list<boost::intrusive_ptr<DocumentSource>> createFromBson(
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 ac82c24ab25..47a9db887fe 100644
--- a/src/mongo/db/pipeline/window_function/window_function_expression.cpp
+++ b/src/mongo/db/pipeline/window_function/window_function_expression.cpp
@@ -58,11 +58,7 @@ using namespace window_function_n_traits;
REGISTER_STABLE_WINDOW_FUNCTION(derivative, ExpressionDerivative::parse);
REGISTER_STABLE_WINDOW_FUNCTION(first, ExpressionFirst::parse);
REGISTER_STABLE_WINDOW_FUNCTION(last, ExpressionLast::parse);
-REGISTER_WINDOW_FUNCTION_CONDITIONALLY(linearFill,
- (ExpressionLinearFill::parse),
- feature_flags::gFeatureFlagFill.getVersion(),
- AllowedWithApiStrict::kNeverInVersion1,
- feature_flags::gFeatureFlagFill.isEnabledAndIgnoreFCV());
+REGISTER_STABLE_WINDOW_FUNCTION(linearFill, ExpressionLinearFill::parse);
REGISTER_STABLE_WINDOW_FUNCTION(minN, (ExpressionN<WindowFunctionMinN, AccumulatorMinN>::parse));
REGISTER_STABLE_WINDOW_FUNCTION(maxN, (ExpressionN<WindowFunctionMaxN, AccumulatorMaxN>::parse));
REGISTER_STABLE_WINDOW_FUNCTION(firstN,
diff --git a/src/mongo/db/query/query_feature_flags.idl b/src/mongo/db/query/query_feature_flags.idl
index 48c3f791886..df2bb74890b 100644
--- a/src/mongo/db/query/query_feature_flags.idl
+++ b/src/mongo/db/query/query_feature_flags.idl
@@ -70,13 +70,7 @@ feature_flags:
cpp_varname: gFeatureFlagLocf
default: true
version: 5.2
-
- featureFlagFill:
- description: "Feature flag for allowing $fill and $linearFill window functions"
- cpp_varname: gFeatureFlagFill
- default: true
- version: 5.3
-
+
featureFlagCommonQueryFramework:
description: "Feature flag for allowing use of Cascades-based query optimizer"
cpp_varname: gFeatureFlagCommonQueryFramework