summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2016-08-08 10:02:33 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2016-08-08 10:02:33 -0400
commite4fcbcf49f07f6b6958cfbd6fc947f57000f626a (patch)
treea72dc0b772e04fea530b13862d0731d9a3e667e8 /jstests/noPassthroughWithMongod
parent0aa6850420e3617bd182c91f4a81c5021f59ee52 (diff)
downloadmongo-e4fcbcf49f07f6b6958cfbd6fc947f57000f626a.tar.gz
SERVER-25469 Only perf test journaled inserts if supported by server.
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r--jstests/noPassthroughWithMongod/bench_test_crud_commands.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/jstests/noPassthroughWithMongod/bench_test_crud_commands.js b/jstests/noPassthroughWithMongod/bench_test_crud_commands.js
index 2866c1b2cc3..938940615a5 100644
--- a/jstests/noPassthroughWithMongod/bench_test_crud_commands.js
+++ b/jstests/noPassthroughWithMongod/bench_test_crud_commands.js
@@ -82,7 +82,14 @@
testInsert(docs, writeCmd, {});
testInsert(docs, writeCmd, {"w": "majority"});
testInsert(docs, writeCmd, {"w": 1, "j": false});
- testInsert(docs, writeCmd, {"j": true});
+
+ var storageEnginesWithoutJournaling = new Set(["ephemeralForTest", "inMemory"]);
+ var runningWithoutJournaling = TestData.noJournal ||
+ storageEnginesWithoutJournaling.has(db.serverStatus().storageEngine.name);
+ if (!runningWithoutJournaling) {
+ // Only test journaled writes if the server actually supports them.
+ testInsert(docs, writeCmd, {"j": true});
+ }
}
testWriteConcern(false);