diff options
author | Suganthi Mani <suganthi.mani@mongodb.com> | 2018-07-27 09:13:56 -0400 |
---|---|---|
committer | smani87 <suganthi.mani@mongodb.com> | 2018-07-27 12:08:42 -0400 |
commit | 285c854b7243653e00f6f7678246fec0e8d7964a (patch) | |
tree | 5e3a7bbff7d5f60765a71cc50f80464b65db4e45 /src/mongo/db/read_concern.cpp | |
parent | 782aeea024538b2d3a0cc6c18bcd59835ff3a2a4 (diff) | |
download | mongo-285c854b7243653e00f6f7678246fec0e8d7964a.tar.gz |
SERVER-36050 Remove isV1ElectionProtocol() check.
Diffstat (limited to 'src/mongo/db/read_concern.cpp')
-rw-r--r-- | src/mongo/db/read_concern.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/mongo/db/read_concern.cpp b/src/mongo/db/read_concern.cpp index b8215af1610..fef22f8ab1f 100644 --- a/src/mongo/db/read_concern.cpp +++ b/src/mongo/db/read_concern.cpp @@ -231,14 +231,6 @@ Status waitForReadConcern(OperationContext* opCtx, "node needs to be a replica set member to use read concern"}; } - // Replica sets running pv0 do not support linearizable read concern until further testing - // is completed (SERVER-27025). - if (!replCoord->isV1ElectionProtocol()) { - return { - ErrorCodes::IncompatibleElectionProtocol, - "Replica sets running protocol version 0 do not support readConcern: linearizable"}; - } - if (readConcernArgs.getArgsOpTime()) { return {ErrorCodes::FailedToParse, "afterOpTime not compatible with linearizable read concern"}; @@ -303,11 +295,6 @@ Status waitForReadConcern(OperationContext* opCtx, return {ErrorCodes::NotAReplicaSet, "node needs to be a replica set member to use readConcern: snapshot"}; } - - if (!replCoord->isV1ElectionProtocol()) { - return {ErrorCodes::IncompatibleElectionProtocol, - "Replica sets running protocol version 0 do not support readConcern: snapshot"}; - } if (speculative) { session->setSpeculativeTransactionOpTimeToLastApplied(opCtx); } @@ -325,11 +312,6 @@ Status waitForReadConcern(OperationContext* opCtx, readConcernArgs.getLevel() == repl::ReadConcernLevel::kSnapshotReadConcern) && !speculative && replCoord->getReplicationMode() == repl::ReplicationCoordinator::Mode::modeReplSet) { - if (!replCoord->isV1ElectionProtocol()) { - return {ErrorCodes::IncompatibleElectionProtocol, - str::stream() << "Replica sets running protocol version 0 do not support " - "majority committed reads"}; - } const int debugLevel = serverGlobalParams.clusterRole == ClusterRole::ConfigServer ? 1 : 2; |