diff options
author | Vesselina Ratcheva <vesselina.ratcheva@10gen.com> | 2020-05-18 21:23:04 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-05-20 00:52:35 +0000 |
commit | 9299e694984e377bab6924bb9dfdd479c626ad28 (patch) | |
tree | fbbc4090d9ba04fb5771d9d06ed5f8dddc085938 /jstests/replsets/rslib.js | |
parent | e25d6c9c19e1897497ef07fcbb656bd4c17be349 (diff) | |
download | mongo-9299e694984e377bab6924bb9dfdd479c626ad28.tar.gz |
SERVER-46355 Test running user reconfigs while newlyAdded is present
Diffstat (limited to 'jstests/replsets/rslib.js')
-rw-r--r-- | jstests/replsets/rslib.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/jstests/replsets/rslib.js b/jstests/replsets/rslib.js index 611d004b2c6..341727d900c 100644 --- a/jstests/replsets/rslib.js +++ b/jstests/replsets/rslib.js @@ -354,8 +354,10 @@ function autoReconfig(rst, targetConfig) { * @param config - the desired target config. After this function returns, the * given replica set should be in 'config', except with a higher version. * @param force - should this be a 'force' reconfig or not. + * @param doNotWaitForMembers - if set, we will skip waiting for all members to be in primary, + * secondary, or arbiter states */ -reconfig = function(rst, config, force) { +reconfig = function(rst, config, force, doNotWaitForMembers) { "use strict"; var primary = rst.getPrimary(); config = rst._updateConfigIfNotDurable(config); @@ -372,7 +374,9 @@ reconfig = function(rst, config, force) { } var primaryAdminDB = rst.getPrimary().getDB("admin"); - waitForAllMembers(primaryAdminDB); + if (!doNotWaitForMembers) { + waitForAllMembers(primaryAdminDB); + } return primaryAdminDB; }; |