diff options
author | Benety Goh <benety@mongodb.com> | 2017-04-12 11:42:20 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2017-04-12 20:15:47 -0400 |
commit | c431782e66416e7dbbd9db457d9507b65c6304ba (patch) | |
tree | 30580a1a45bdc97441cd40783981157ca2cac33d /src | |
parent | 9e3a63f9cf9ef3e64dd991824eb87dcf170d3d31 (diff) | |
download | mongo-c431782e66416e7dbbd9db457d9507b65c6304ba.tar.gz |
SERVER-28699 ReplSetTest should always awaitSecondaryNodes() at the end of initiate
(cherry picked from commit 2788b12816f9124cae6b35a0554361b232c27419)
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/shell/replsettest.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/shell/replsettest.js b/src/mongo/shell/replsettest.js index d9919c91341..b6b9e375a04 100644 --- a/src/mongo/shell/replsettest.js +++ b/src/mongo/shell/replsettest.js @@ -768,6 +768,8 @@ var ReplSetTest = function(opts) { master = this.getPrimary(); jsTest.authenticateNodes(this.nodes); } + + this.awaitSecondaryNodes(); }; /** @@ -800,7 +802,6 @@ var ReplSetTest = function(opts) { * Calls awaitReplication() which requires all connections in 'nodes' to be authenticated. */ this.stepUp = function(node) { - this.awaitSecondaryNodes(); this.awaitReplication(); this.awaitNodesAgreeOnPrimary(); if (this.getPrimary() === node) { |