Skip to content

Commit

Permalink
SERVER-21636 fix testing snapshots in isolation
Browse files Browse the repository at this point in the history
  • Loading branch information
matt dannenberg committed Nov 24, 2015
1 parent 7f357a6 commit 160de93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongo/db/dbcommands.cpp
Expand Up @@ -1390,7 +1390,7 @@ bool Command::run(OperationContext* txn,
testingSnapshotBehaviorInIsolation) &&
readConcernArgs.getLevel() == repl::ReadConcernLevel::kMajorityReadConcern) {
// ReadConcern Majority is not supported in ProtocolVersion 0.
if (!replCoord->isV1ElectionProtocol()) {
if (!testingSnapshotBehaviorInIsolation && !replCoord->isV1ElectionProtocol()) {
auto result = appendCommandStatus(
inPlaceReplyBob,
{ErrorCodes::ReadConcernMajorityNotEnabled,
Expand Down

0 comments on commit 160de93

Please sign in to comment.