Skip to content

Commit

Permalink
SERVER-73740: Allow old FCV constants to be parsed by min_fcv
Browse files Browse the repository at this point in the history
  • Loading branch information
varunravi98 authored and Evergreen Agent committed Mar 20, 2023
1 parent 073ab04 commit 52bda34
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildscripts/idl/idl/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2705,7 +2705,7 @@ def gen_server_parameters(self, params, header_file_name):
(param_no, param.condition.feature_flag))
if param.condition.min_fcv:
self._writer.write_line(
'scp_%d->setMinFCV(FeatureCompatibilityVersionParser::parseVersion("%s"));'
'scp_%d->setMinFCV(FeatureCompatibilityVersionParser::parseVersionForFeatureFlags("%s"));'
% (param_no, param.condition.min_fcv))

self._gen_server_parameter_deprecated_aliases(param_no, param)
Expand Down
4 changes: 4 additions & 0 deletions docs/server-parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ no provided setting evaluates to `false`, the server parameter will be registere
is enabled. `min_fcv` is a string of the form `X.Y`, representing the minimum FCV version for which
this parameter should be enabled. `feature_flag` is the name of a feature flag variable upon which
this server parameter depends -- if the feature flag is disabled, this parameter will be disabled.
`feature_flag` should be removed when all other instances of that feature flag are deleted, which
typically is done after the next LTS version of the server is branched. `min_fcv` should be removed
after it is no longer possible to downgrade to a FCV lower than that version - this occurs when the
next LTS version of the server is branched.

* `validator`: Zero or many validation rules to impose on the setting. All specified rules must pass
to consider the new setting valid. `lt`, `gt`, `lte`, `gte` fields provide for simple numeric limits
Expand Down
2 changes: 1 addition & 1 deletion src/mongo/db/change_streams_cluster_parameter.idl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ server_parameters:
validator:
callback: validateChangeStreamsClusterParameter
condition:
min_fcv: 6.3
min_fcv: 6.2
changeCollectionExpiredDocumentsRemoverJobSleepSeconds:
description: "Specifies the number of seconds for which the periodic change collection remover job will sleep between each cycle."
set_at: [ startup ]
Expand Down

0 comments on commit 52bda34

Please sign in to comment.