diff options
author | Eric Milkie <milkie@10gen.com> | 2016-10-28 09:32:51 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2016-10-28 10:57:59 -0400 |
commit | b5d33b2b1564edb7d6778f7a8392472af61239a4 (patch) | |
tree | 1976adfc002b96be49d0da3646220c7912cf7880 | |
parent | bf4385aed5e528a8cf1edb7955c8c2164dda04f0 (diff) | |
download | mongo-b5d33b2b1564edb7d6778f7a8392472af61239a4.tar.gz |
SERVER-26823 really ensure first node is primary
-rw-r--r-- | jstests/noPassthrough/wt_nojournal_repl.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/noPassthrough/wt_nojournal_repl.js b/jstests/noPassthrough/wt_nojournal_repl.js index 8e25d5923f8..ebea3f1b5ab 100644 --- a/jstests/noPassthrough/wt_nojournal_repl.js +++ b/jstests/noPassthrough/wt_nojournal_repl.js @@ -43,7 +43,8 @@ if (jsTest.options().storageEngine && jsTest.options().storageEngine !== "wiredT // make sure node 0 becomes primary initially var config = replTest.getReplSetConfig(); - config.members[0].priority = 1; + config.members[1].priority = 0; + config.members[2].priority = 0; replTest.initiate(config); var masterDB = replTest.getPrimary().getDB("test"); |