summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/readConcern_snapshot.js
diff options
context:
space:
mode:
authorVesselina Ratcheva <vesselina.ratcheva@10gen.com>2018-03-13 15:38:09 -0400
committerVesselina Ratcheva <vesselina.ratcheva@10gen.com>2018-03-13 18:57:31 -0400
commit5ab5ab20ba5aa78ceb1697eee05ddea8f6e3d94b (patch)
tree6e2b12f2b178dd41b7c373787791556af68f1992 /jstests/noPassthrough/readConcern_snapshot.js
parent296f242fedb66eff99861f4fa3cda1ffc552ad9d (diff)
downloadmongo-5ab5ab20ba5aa78ceb1697eee05ddea8f6e3d94b.tar.gz
SERVER-32144 Remove test coverage for replication protocol version 0
This reverts commit c5a4250a649ab0afb4ecdf227d4a0400f9e68786.
Diffstat (limited to 'jstests/noPassthrough/readConcern_snapshot.js')
-rw-r--r--jstests/noPassthrough/readConcern_snapshot.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/jstests/noPassthrough/readConcern_snapshot.js b/jstests/noPassthrough/readConcern_snapshot.js
index 94ca9383fcf..67aee67ae5b 100644
--- a/jstests/noPassthrough/readConcern_snapshot.js
+++ b/jstests/noPassthrough/readConcern_snapshot.js
@@ -38,18 +38,6 @@
ErrorCodes.IllegalOperation);
MongoRunner.stopMongod(conn);
- // readConcern 'snapshot' is not allowed with protocol version 0.
- rst = new ReplSetTest({nodes: 1, protocolVersion: 0});
- rst.startSet();
- rst.initiate();
- session = rst.getPrimary().getDB(dbName).getMongo().startSession({causalConsistency: false});
- sessionDb = session.getDatabase(dbName);
- assert.commandFailedWithCode(
- sessionDb.runCommand(
- {find: collName, readConcern: {level: "snapshot"}, txnNumber: NumberLong(0)}),
- ErrorCodes.IncompatibleElectionProtocol);
- rst.stopSet();
-
// readConcern 'snapshot' is allowed on a replica set primary.
rst = new ReplSetTest({nodes: 2});
rst.startSet();