diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2018-03-14 18:13:48 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2018-03-15 09:18:40 -0400 |
commit | 137bae8a3739545564cef631e33680108e767330 (patch) | |
tree | 1b36c7e23195a83dbc1508d8657b963aefd2e27c | |
parent | 368d9a39e91a0b58898be714b06cd0dfb19d6851 (diff) | |
download | mongo-137bae8a3739545564cef631e33680108e767330.tar.gz |
SERVER-31802 Remove master and slave uses from dur suite
-rw-r--r-- | jstests/dur/closeall.js | 11 | ||||
-rw-r--r-- | jstests/dur/dur2.js | 8 | ||||
-rw-r--r-- | jstests/dur/lsn.js | 8 |
3 files changed, 5 insertions, 22 deletions
diff --git a/jstests/dur/closeall.js b/jstests/dur/closeall.js index 014bacc0423..3eb04c706c9 100644 --- a/jstests/dur/closeall.js +++ b/jstests/dur/closeall.js @@ -13,12 +13,7 @@ function f(variant, quickCommits, paranoid) { // use replication to exercise that code too with a close, and also to test local.sources with a // close - var conn = MongoRunner.runMongod( - {journal: "", journalOptions: options + "", master: "", oplogSize: 64}); - var connSlave = MongoRunner.runMongod( - {journal: "", journalOptions: options + "", slave: "", source: "localhost:" + conn.port}); - - var slave = connSlave.getDB(ourdb); + var conn = MongoRunner.runMongod({journal: "", journalOptions: options + ""}); // we'll use two connections to make a little parallelism var db1 = conn.getDB(ourdb); @@ -81,11 +76,7 @@ function f(variant, quickCommits, paranoid) { writeOps(); - print("closeall.js end test loop. slave.foo.count:"); - print(slave.foo.count()); - print("closeall.js shutting down servers"); - MongoRunner.stopMongod(connSlave); MongoRunner.stopMongod(conn); } diff --git a/jstests/dur/dur2.js b/jstests/dur/dur2.js index b56949e00ad..3cba67aee5c 100644 --- a/jstests/dur/dur2.js +++ b/jstests/dur/dur2.js @@ -75,9 +75,7 @@ conn = MongoRunner.runMongod({ dbpath: path, journal: "", smallfiles: "", - journalOptions: 8 /*DurParanoid*/, - master: "", - oplogSize: 64 + journalOptions: 8 /*DurParanoid*/ }); work(); @@ -96,9 +94,7 @@ conn = MongoRunner.runMongod({ dbpath: path, journal: "", smallfiles: "", - journalOptions: 8, - master: "", - oplogSize: 64 + journalOptions: 8 }); verify(); diff --git a/jstests/dur/lsn.js b/jstests/dur/lsn.js index 497b4597b2e..9ec638c8d30 100644 --- a/jstests/dur/lsn.js +++ b/jstests/dur/lsn.js @@ -84,9 +84,7 @@ conn = MongoRunner.runMongod({ syncdelay: 2, journal: "", smallfiles: "", - journalOptions: 8 /*DurParanoid*/, - master: "", - oplogSize: 64 + journalOptions: 8 /*DurParanoid*/ }); work(); @@ -122,9 +120,7 @@ conn = MongoRunner.runMongod({ dbpath: path2, journal: "", smallfiles: "", - journalOptions: 24, - master: "", - oplogSize: 64 + journalOptions: 24 }); verify(); |