diff options
author | Kamran Khan <kamran.khan@mongodb.com> | 2015-12-17 12:50:14 -0500 |
---|---|---|
committer | Kamran Khan <kamran.khan@mongodb.com> | 2015-12-17 13:41:43 -0500 |
commit | 285f6dea0758ae28274615ac2d155c4b43929579 (patch) | |
tree | fb8940ac09e55bc0e4965f3fba8ff5c26ab9e7c9 | |
parent | 27692afcd08165ca8087bff7dd3fae754acfcb84 (diff) | |
download | mongo-285f6dea0758ae28274615ac2d155c4b43929579.tar.gz |
SERVER-21923 Propagate ReplSetTest.awaitSecondaryNodes timeout values
Previously, the supplied timeout would not be propagated to the getPrimary
call, which could result in shorter timeouts for awaitSecondaryNodes and
initiate calls.
(cherry picked from commit c0e329b959a34e5c80bcbd3f4d77764cc1aa920d)
-rw-r--r-- | src/mongo/shell/replsettest.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/replsettest.js b/src/mongo/shell/replsettest.js index fbf2abb7d90..6926d8d7e4f 100644 --- a/src/mongo/shell/replsettest.js +++ b/src/mongo/shell/replsettest.js @@ -389,7 +389,7 @@ var ReplSetTest = function(opts) { assert.soon(function() { // Reload who the current slaves are - self.getPrimary(); + self.getPrimary(timeout); var slaves = self.liveNodes.slaves; var len = slaves.length; |