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; }
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; }