summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod
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/noPassthroughWithMongod
parentae04822985f2478c7da1e6821f5fc91b484b9555 (diff)
downloadmongo-84ca21e55efe1bdf97380caaa10079b613f00cac.tar.gz
SERVER-20844 Start ReplSetTests faster wrt initial election
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r--jstests/noPassthroughWithMongod/ttl_repl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthroughWithMongod/ttl_repl.js b/jstests/noPassthroughWithMongod/ttl_repl.js
index 794f0c3ad90..79892cb93b1 100644
--- a/jstests/noPassthroughWithMongod/ttl_repl.js
+++ b/jstests/noPassthroughWithMongod/ttl_repl.js
@@ -66,7 +66,7 @@ assert.eq(6, slave1col.count(), "docs not deleted on secondary");
// add a new secondary, wait for it to fully join
var slave = rt.add();
var config = rt.getReplSetConfig();
-config.version = 2;
+config.version = rt.getReplSetConfigFromNode().version + 1;
reconfig(rt, config);
var slave2col = slave.getDB('d')['c'];