diff options
author | Grace Luong <grace.luong@mongodb.com> | 2020-07-31 20:04:02 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-07-31 20:58:02 +0000 |
commit | cd5a75ea3bf3915617a04a9ec463bfb2c467b27e (patch) | |
tree | 131002f02b182c7ca324c1be475a5a3c93e14f89 /src/mongo/db/server_options.h | |
parent | 134c3ee37576de7ec36456fe3420305d6871b874 (diff) | |
download | mongo-cd5a75ea3bf3915617a04a9ec463bfb2c467b27e.tar.gz |
SERVER-49270: Set minWireVersion based on FCV and refactor protocol tests
Diffstat (limited to 'src/mongo/db/server_options.h')
-rw-r--r-- | src/mongo/db/server_options.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/server_options.h b/src/mongo/db/server_options.h index 4d239097d91..5e451140636 100644 --- a/src/mongo/db/server_options.h +++ b/src/mongo/db/server_options.h @@ -282,6 +282,11 @@ struct ServerGlobalParams { return version != kLatest && version != kLastContinuous && version != kLastLTS; } + // This function is to be used for generic FCV references only, and not for FCV-gating. + bool isUpgradingOrDowngrading(Version version) { + return version != kLatest && version != kLastContinuous && version != kLastLTS; + } + private: AtomicWord<Version> _version{Version::kUnsetDefault44Behavior}; |