diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2016-08-08 10:02:33 -0400 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2016-08-08 10:02:33 -0400 |
commit | e4fcbcf49f07f6b6958cfbd6fc947f57000f626a (patch) | |
tree | a72dc0b772e04fea530b13862d0731d9a3e667e8 /jstests/noPassthroughWithMongod | |
parent | 0aa6850420e3617bd182c91f4a81c5021f59ee52 (diff) | |
download | mongo-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.js | 9 |
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); |