summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatt dannenberg <matt.dannenberg@10gen.com>2015-11-23 08:19:56 -0500
committermatt dannenberg <matt.dannenberg@10gen.com>2015-11-24 05:15:43 -0500
commit160de93cc00ad5162dc8a344a4c067ff75bf577e (patch)
tree53272b4c0c21fae32bf72b1b21222d4a3b1c3969
parent7f357a6865619ee32ab4f33240084f6b7c47f3ba (diff)
downloadmongo-160de93cc00ad5162dc8a344a4c067ff75bf577e.tar.gz
SERVER-21636 fix testing snapshots in isolation
-rw-r--r--src/mongo/db/dbcommands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/dbcommands.cpp b/src/mongo/db/dbcommands.cpp
index 9bd3abddc95..f328296e347 100644
--- a/src/mongo/db/dbcommands.cpp
+++ b/src/mongo/db/dbcommands.cpp
@@ -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,