summaryrefslogtreecommitdiff
path: root/jstests/replsets/initial_sync4.js
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2018-09-05 17:15:18 -0400
committerSpencer T Brody <spencer@mongodb.com>2018-09-06 17:31:20 -0400
commitb4f3327901f58083d376064a6d89680325b26964 (patch)
tree28f0743fd712d1fb855ace554e6abc0b492c0d43 /jstests/replsets/initial_sync4.js
parentff3d0c50ac196f79ef86bf5383995d7dec7de941 (diff)
downloadmongo-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.js4
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
+}());