Changeset 5546
- Timestamp:
- Jul 31, 2009, 5:59:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/chord/Chord.cpp
r5450 r5546 227 227 vector<LinkID>::iterator it = std::find(bootstrapLinks.begin(), bootstrapLinks.end(), lnk); 228 228 if( it != bootstrapLinks.end() ) { 229 send_discovery_to(nodeid); 229 // send discovery over bootstrap 230 Message msg; 231 ChordMessage cmsg(ChordMessage::discovery, nodeid, destination); 232 Discovery dmsg; 233 dmsg.setSourceEndpoint(&baseoverlay.getEndpointDescriptor()); 234 dmsg.setFollowType(Discovery::normal); 235 dmsg.setTTL((uint8_t) ttl); 236 cmsg.encapsulate(&dmsg); 237 msg.encapsulate(&cmsg); 238 send(&msg, lnk); 230 239 bootstrapLinks.erase( it ); 231 240 } … … 399 408 if (disc1 != disc2) send_discovery_to(disc2); 400 409 orphan_removal_counter++; 401 if (orphan_removal_counter == 2) {410 if (orphan_removal_counter >= 2) { 402 411 logging_info("Running orphan removal"); 403 412 orphan_removal_counter = 0;
Note:
See TracChangeset
for help on using the changeset viewer.