Esempio n. 1
0
 bool OplogReader::connect(const BSONObj& rid, const int from, const string& to) {
     if (conn() != 0) {
         return true;
     }
     if (commonConnect(to, default_so_timeout)) {
         log() << "handshake between " << from << " and " << to << endl;
         return passthroughHandshake(rid, from);
     }
     return false;
 }
Esempio n. 2
0
 bool OplogReader::connect(const mongo::OID& rid, const int from, const string& to) {
     if (conn() != 0) {
         return true;
     }
     if (commonConnect(to)) {
         log() << "handshake between " << from << " and " << to << endl;
         return passthroughHandshake(rid, from);
     }
     return false;
 }