summaryrefslogtreecommitdiff
path: root/src/mongo/db/read_concern.cpp
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2017-10-26 10:34:39 -0400
committerJudah Schvimer <judah@mongodb.com>2017-10-26 10:34:39 -0400
commit0d8371f7e13b3455506f62d8e9129e4e66ed9a15 (patch)
tree135564174ed97cb774d645486d7c2db472939c02 /src/mongo/db/read_concern.cpp
parent253d4c559450238d786e03d3c3118f02e6b9358f (diff)
downloadmongo-0d8371f7e13b3455506f62d8e9129e4e66ed9a15.tar.gz
SERVER-31608 remove FCV getters
Diffstat (limited to 'src/mongo/db/read_concern.cpp')
-rw-r--r--src/mongo/db/read_concern.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/read_concern.cpp b/src/mongo/db/read_concern.cpp
index f79fd3541f4..f5f36e46ea3 100644
--- a/src/mongo/db/read_concern.cpp
+++ b/src/mongo/db/read_concern.cpp
@@ -213,7 +213,8 @@ Status waitForReadConcern(OperationContext* opCtx, const repl::ReadConcernArgs&
auto afterClusterTime = readConcernArgs.getArgsClusterTime();
if (afterClusterTime) {
- if (!serverGlobalParams.featureCompatibility.isFullyUpgradedTo36() &&
+ if ((serverGlobalParams.featureCompatibility.getVersion() !=
+ ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo36) &&
ShardingState::get(opCtx)->enabled()) {
return {ErrorCodes::InvalidOptions,
"readConcern afterClusterTime is not available in featureCompatibilityVersion "