diff options
author | Kristina <kristina@10gen.com> | 2011-10-05 16:55:55 -0400 |
---|---|---|
committer | Kristina <kristina@10gen.com> | 2011-10-24 15:00:33 -0400 |
commit | e65e110553c725939f0706ca42a952855fea388b (patch) | |
tree | d8e2369841dfeafe5bb6d4b930d3173833599fa8 /shell | |
parent | f74345924b6e2381f351337312401539d3156591 (diff) | |
download | mongo-e65e110553c725939f0706ca42a952855fea388b.tar.gz |
Make secondaries go into recovering state when auth is wrong SERVER-3715
Diffstat (limited to 'shell')
-rwxr-xr-x | shell/servers.js | 6 |
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++ ){ |