Permalink
Browse files

backport of SERVER-3462

  • Loading branch information...
1 parent 2290dcc commit bb85c0204c705186ca1bd67c6f39e1920ee5711d @erh erh committed Aug 7, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 client/dbclient_rs.cpp
View
@@ -463,9 +463,12 @@ namespace mongo {
if ( ! _slave->isFailed() )
return _slave.get();
_monitor->notifySlaveFailure( _slaveHost );
+ _slaveHost = _monitor->getSlave();
}
-
- _slaveHost = _monitor->getSlave();
+ else {
+ _slaveHost = h;
+ }
+
_slave.reset( new DBClientConnection( true , this ) );
_slave->connect( _slaveHost );
_auth( _slave.get() );

0 comments on commit bb85c02

Please sign in to comment.