diff options
author | Spencer T Brody <spencer@mongodb.com> | 2014-04-28 15:00:24 -0400 |
---|---|---|
committer | Dan Pasette <dan@mongodb.com> | 2014-05-16 15:35:31 -0400 |
commit | 0366e4a86262a89e329fabbadde06e14bd4a33cb (patch) | |
tree | e5d42ada1721f996698b7eba67d388cdcb0dec63 /src | |
parent | 0ef9bcd431976a5384324db905a155f41f9fe1dc (diff) | |
download | mongo-0366e4a86262a89e329fabbadde06e14bd4a33cb.tar.gz |
SERVER-13972 Make connections_opened.js test retry any connections that fail to connect
(cherry picked from commit b64939f3ac16843525adf6f0e893a78409ddaf16)
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/shell/servers_misc.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/shell/servers_misc.js b/src/mongo/shell/servers_misc.js index abb4f8080bb..91db127998a 100644 --- a/src/mongo/shell/servers_misc.js +++ b/src/mongo/shell/servers_misc.js @@ -285,12 +285,14 @@ SyncCCTest.prototype.tempStart = function( num ){ } -function startParallelShell( jsCode, port ){ +function startParallelShell( jsCode, port, noConnect ){ var x; var args = ["mongo"]; - if (typeof(db) == "object") { + if (noConnect) { + args.push("--nodb"); + } else if (typeof(db) == "object") { jsCode = "db = db.getSiblingDB('" + db.getName() + "');" + jsCode; } |