diff options
author | James Wahlin <james.wahlin@10gen.com> | 2016-10-19 09:01:44 -0400 |
---|---|---|
committer | James Wahlin <james.wahlin@10gen.com> | 2016-10-19 17:10:49 -0400 |
commit | 68937f06d1bb86dced01291835a1678f563a3f64 (patch) | |
tree | d073dc3095077930ad2e0fbc4a906c4880975dbd /jstests | |
parent | e342912532c5cd106340b233eca5e49f9d69f0ab (diff) | |
download | mongo-68937f06d1bb86dced01291835a1678f563a3f64.tar.gz |
SERVER-26694 wt_nojournal_skip_recovery.js background loop early exit
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/noPassthrough/wt_nojournal_skip_recovery.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/noPassthrough/wt_nojournal_skip_recovery.js b/jstests/noPassthrough/wt_nojournal_skip_recovery.js index fa0d32b93c4..f7337bbe88c 100644 --- a/jstests/noPassthrough/wt_nojournal_skip_recovery.js +++ b/jstests/noPassthrough/wt_nojournal_skip_recovery.js @@ -30,16 +30,16 @@ // Execute unjournaled inserts, but periodically do a journaled insert. Triggers a checkpoint // prior to the mongod being terminated. var awaitShell = startParallelShell(function() { - for (var iter = 1; iter <= 1000; ++iter) { + for (let loopNum = 1; true; ++loopNum) { var bulk = db.nojournal.initializeUnorderedBulkOp(); for (var i = 0; i < 100; ++i) { bulk.insert({unjournaled: i}); } assert.writeOK(bulk.execute({j: false})); - assert.writeOK(db.nojournal.insert({journaled: iter}, {writeConcern: {j: true}})); + assert.writeOK(db.nojournal.insert({journaled: loopNum}, {writeConcern: {j: true}})); // Create a checkpoint slightly before the mongod is terminated. - if (iter === 90) { + if (loopNum === 90) { assert.commandWorked(db.adminCommand({fsync: 1})); } } |