diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2017-06-15 18:29:55 -0400 |
---|---|---|
committer | Jack Mulrow <jack.mulrow@mongodb.com> | 2017-06-22 10:12:38 -0400 |
commit | ed1be6cce837630b65dd35c2b683007e970caea8 (patch) | |
tree | 1e58ee23d9c11376c59e0fba57624ef5857a6e4c /src/mongo/db/read_concern.cpp | |
parent | 0d79ab8b66fcaf06bf5622de580ed5a85c95bc16 (diff) | |
download | mongo-ed1be6cce837630b65dd35c2b683007e970caea8.tar.gz |
SERVER-29654 Enable keys generation and logicalTime processing on shards and config when FCV is 3.6
Diffstat (limited to 'src/mongo/db/read_concern.cpp')
-rw-r--r-- | src/mongo/db/read_concern.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/read_concern.cpp b/src/mongo/db/read_concern.cpp index 398284351f3..a2f79eeea95 100644 --- a/src/mongo/db/read_concern.cpp +++ b/src/mongo/db/read_concern.cpp @@ -165,6 +165,14 @@ Status waitForReadConcern(OperationContext* opCtx, const repl::ReadConcernArgs& auto afterClusterTime = readConcernArgs.getArgsClusterTime(); if (afterClusterTime) { + if (serverGlobalParams.featureCompatibility.version.load() == + ServerGlobalParams::FeatureCompatibility::Version::k34 && + ShardingState::get(opCtx)->enabled()) { + return {ErrorCodes::InvalidOptions, + "readConcern afterClusterTime is not available in featureCompatibilityVersion " + "3.4 in a sharded cluster"}; + } + auto currentTime = LogicalClock::get(opCtx)->getClusterTime(); if (currentTime < *afterClusterTime) { return {ErrorCodes::InvalidOptions, |