diff options
author | Jason Chan <jason.chan@mongodb.com> | 2020-09-28 18:59:02 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-30 19:37:36 +0000 |
commit | f393c88a92010d406f063ca4fcc866f1988bf84d (patch) | |
tree | 35eb92ba46aaddf824a10866eb82239db2c8320f /src/mongo/db/server_options.h | |
parent | c6316be1df28838a51f257abae42f43083e72d25 (diff) | |
download | mongo-f393c88a92010d406f063ca4fcc866f1988bf84d.tar.gz |
SERVER-49802 Update FCV constants to recognize 4.8 as latest
Diffstat (limited to 'src/mongo/db/server_options.h')
-rw-r--r-- | src/mongo/db/server_options.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/mongo/db/server_options.h b/src/mongo/db/server_options.h index ae3a87ec5e1..72035292cbb 100644 --- a/src/mongo/db/server_options.h +++ b/src/mongo/db/server_options.h @@ -197,29 +197,35 @@ struct ServerGlobalParams { kUnsetDefault44Behavior = 1, kFullyDowngradedTo44 = 2, kDowngradingFrom47To44 = 3, - kUpgradingFrom44To47 = 4, - kVersion47 = 5, + kDowngradingFrom48To44 = 4, + kUpgradingFrom44To47 = 5, + kUpgradingFrom44To48 = 6, + kVersion47 = 7, + kDowngradingFrom48To47 = 8, + kUpgradingFrom47To48 = 9, + kVersion48 = 10, }; // These constants should only be used for generic FCV references. Generic references are // FCV references that are expected to exist across LTS binary versions. - static constexpr Version kLatest = Version::kVersion47; - static constexpr Version kLastContinuous = Version::kFullyDowngradedTo44; + static constexpr Version kLatest = Version::kVersion48; + static constexpr Version kLastContinuous = Version::kVersion47; static constexpr Version kLastLTS = Version::kFullyDowngradedTo44; // These constants should only be used for generic FCV references. Generic references are // FCV references that are expected to exist across LTS binary versions. // NOTE: DO NOT USE THEM FOR REGULAR FCV CHECKS. - static constexpr Version kUpgradingFromLastLTSToLatest = Version::kUpgradingFrom44To47; + static constexpr Version kUpgradingFromLastLTSToLatest = Version::kUpgradingFrom44To48; static constexpr Version kUpgradingFromLastContinuousToLatest = - Version::kUpgradingFrom44To47; - static constexpr Version kDowngradingFromLatestToLastLTS = Version::kDowngradingFrom47To44; + Version::kUpgradingFrom47To48; + static constexpr Version kDowngradingFromLatestToLastLTS = Version::kDowngradingFrom48To44; static constexpr Version kDowngradingFromLatestToLastContinuous = - Version::kDowngradingFrom47To44; + Version::kDowngradingFrom48To47; // kUpgradingFromLastLTSToLastContinuous is only ever set to a valid FCV when // kLastLTS and kLastContinuous are not equal. Otherwise, this value should be set to // kInvalid. - static constexpr Version kUpgradingFromLastLTSToLastContinuous = Version::kInvalid; + static constexpr Version kUpgradingFromLastLTSToLastContinuous = + Version::kUpgradingFrom44To47; /** * On startup, the featureCompatibilityVersion may not have been explicitly set yet. This |