summaryrefslogtreecommitdiff
path: root/jstests/replsets/initial_sync1.js
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2017-01-09 13:19:53 -0500
committerJack Mulrow <jack.mulrow@mongodb.com>2017-01-23 13:25:30 -0500
commit84ca21e55efe1bdf97380caaa10079b613f00cac (patch)
treec91b618754407c6055a1a81ee1945a1e2ec653e7 /jstests/replsets/initial_sync1.js
parentae04822985f2478c7da1e6821f5fc91b484b9555 (diff)
downloadmongo-84ca21e55efe1bdf97380caaa10079b613f00cac.tar.gz
SERVER-20844 Start ReplSetTests faster wrt initial election
Diffstat (limited to 'jstests/replsets/initial_sync1.js')
-rw-r--r--jstests/replsets/initial_sync1.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/initial_sync1.js b/jstests/replsets/initial_sync1.js
index 3087793dcd1..cf876a7f1b2 100644
--- a/jstests/replsets/initial_sync1.js
+++ b/jstests/replsets/initial_sync1.js
@@ -57,7 +57,7 @@ var local_s2 = slave2.getDB("local");
var admin_s2 = slave2.getDB("admin");
var config = replTest.getReplSetConfig();
-config.version = 2;
+config.version = replTest.getReplSetConfigFromNode().version + 1;
config.members.push({_id: 2, host: slave2.host});
try {
admin.runCommand({replSetReconfig: config});