diff options
Diffstat (limited to 'client/dbclient_rs.h')
-rw-r--r-- | client/dbclient_rs.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/client/dbclient_rs.h b/client/dbclient_rs.h index bf91f09..318b3cf 100644 --- a/client/dbclient_rs.h +++ b/client/dbclient_rs.h @@ -120,7 +120,7 @@ namespace mongo { * Use replSetGetStatus command to make sure hosts in host list are up * and readable. Sets Node::ok appropriately. */ - void _checkStatus(DBClientConnection *conn); + void _checkStatus( const string& hostAddr ); /** * Add array of hosts to host list. Doesn't do anything if hosts are @@ -181,9 +181,8 @@ namespace mongo { string _name; struct Node { Node( const HostAndPort& a , DBClientConnection* c ) - : addr( a ) , conn(c) , ok(true) , + : addr( a ) , conn(c) , ok( c != NULL ), ismaster(false), secondary( false ) , hidden( false ) , pingTimeMillis(0) { - ok = conn.get() == NULL; } bool okForSecondaryQueries() const { |