summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorKristina <kristina@10gen.com>2011-10-05 16:55:55 -0400
committerKristina <kristina@10gen.com>2011-10-24 15:00:33 -0400
commite65e110553c725939f0706ca42a952855fea388b (patch)
treed8e2369841dfeafe5bb6d4b930d3173833599fa8 /shell
parentf74345924b6e2381f351337312401539d3156591 (diff)
downloadmongo-e65e110553c725939f0706ca42a952855fea388b.tar.gz
Make secondaries go into recovering state when auth is wrong SERVER-3715
Diffstat (limited to 'shell')
-rwxr-xr-xshell/servers.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/servers.js b/shell/servers.js
index 886e7d8ebcf..efbd9b66dae 100755
--- a/shell/servers.js
+++ b/shell/servers.js
@@ -1860,7 +1860,11 @@ ReplSetTest.prototype.waitForIndicator = function( node, states, ind, timeout ){
printjson( status )
lastTime = new Date().getTime()
}
-
+
+ if (typeof status.members == 'undefined') {
+ return false;
+ }
+
for( var i = 0; i < status.members.length; i++ ){
if( status.members[i].name == node.host ){
for( var j = 0; j < states.length; j++ ){