summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/read_concern_snapshot_yielding.js
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2018-06-11 17:48:36 -0400
committerTess Avitabile <tess.avitabile@mongodb.com>2018-06-14 10:26:16 -0400
commit7fb0ba7016a7af44532f49088bcf698ac3815860 (patch)
treea8b48a3bc20c5745b3088a07e455eaf84e842e7b /jstests/noPassthrough/read_concern_snapshot_yielding.js
parent33ea303e386cef960015143e1ff396102b2bc5ac (diff)
downloadmongo-7fb0ba7016a7af44532f49088bcf698ac3815860.tar.gz
SERVER-35513 Forbid transactions on inMemory storage engine
(cherry picked from commit 0b103f9904fe7dfc88d8a1077cf01c30cdd330d0)
Diffstat (limited to 'jstests/noPassthrough/read_concern_snapshot_yielding.js')
-rw-r--r--jstests/noPassthrough/read_concern_snapshot_yielding.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/jstests/noPassthrough/read_concern_snapshot_yielding.js b/jstests/noPassthrough/read_concern_snapshot_yielding.js
index c7f8cf3ffbe..3792b3bb655 100644
--- a/jstests/noPassthrough/read_concern_snapshot_yielding.js
+++ b/jstests/noPassthrough/read_concern_snapshot_yielding.js
@@ -1,7 +1,7 @@
// Test that the read concern level 'snapshot' exhibits the correct yielding behavior. That is,
// operations performed at read concern level snapshot check for interrupt but do not yield locks or
// storage engine resources.
-// @tags: [requires_replication]
+// @tags: [uses_transactions]
(function() {
"use strict";
@@ -24,11 +24,6 @@
const coll = db.coll;
TestData.numDocs = 4;
- if (!db.serverStatus().storageEngine.supportsSnapshotReadConcern) {
- rst.stopSet();
- return;
- }
-
// Set 'internalQueryExecYieldIterations' to 2 to ensure that commands yield on the second try
// (i.e. after they have established a snapshot but before they have returned any documents).
assert.commandWorked(db.adminCommand({setParameter: 1, internalQueryExecYieldIterations: 2}));