diff options
author | Spencer T Brody <spencer@mongodb.com> | 2018-09-05 17:15:18 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2018-09-06 17:31:20 -0400 |
commit | b4f3327901f58083d376064a6d89680325b26964 (patch) | |
tree | 28f0743fd712d1fb855ace554e6abc0b492c0d43 /jstests/replsets/initial_sync4.js | |
parent | ff3d0c50ac196f79ef86bf5383995d7dec7de941 (diff) | |
download | mongo-b4f3327901f58083d376064a6d89680325b26964.tar.gz |
SERVER-37010 Prevent unexpected elections in initial_sync4.js and initial_sync_rename_collection*.js
Diffstat (limited to 'jstests/replsets/initial_sync4.js')
-rw-r--r-- | jstests/replsets/initial_sync4.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/initial_sync4.js b/jstests/replsets/initial_sync4.js index 884a4dcd165..504e7e737ab 100644 --- a/jstests/replsets/initial_sync4.js +++ b/jstests/replsets/initial_sync4.js @@ -34,7 +34,7 @@ var config = replTest.getReplSetConfig(); config.version = replTest.getReplSetConfigFromNode().version + 1; - config.members.push({_id: 2, host: hostname + ":" + s.port, priority: 0}); + config.members.push({_id: 2, host: hostname + ":" + s.port, priority: 0, votes: 0}); try { m.getDB("admin").runCommand({replSetReconfig: config}); } catch (e) { @@ -83,4 +83,4 @@ assert.eq(mc.find().sort({x: 1}).itcount(), sc.find().sort({x: 1}).itcount()); MongoRunner.stopMongod(s); replTest.stopSet(15); -}());
\ No newline at end of file +}()); |