Changeset 5776 for source/ariba/overlay/modules/chord/Chord.cpp
- Timestamp:
- Aug 7, 2009, 12:55:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/chord/Chord.cpp
r5761 r5776 92 92 93 93 // establish link via base overlay 94 return baseoverlay.establishLink(endp, node, OverlayInterface::OVERLAY_SERVICE_ID, remoteRelay ); 94 return baseoverlay.establishLink(endp, node, OverlayInterface::OVERLAY_SERVICE_ID, 95 NodeID::UNSPECIFIED ); 95 96 } 96 97 … … 377 378 logging_debug("Discovery split: routing discovery message to successor " 378 379 << succ_item->id.toString() ); 380 cmsg_s.setDestination(succ_item->id); 379 381 send(&cmsg_s, succ_item->info); 380 382 } … … 390 392 logging_debug("Discovery split: routing discovery message to predecessor " 391 393 << pred_item->id.toString() ); 394 cmsg_p.setDestination(pred_item->id); 392 395 send(&cmsg_p, pred_item->info); 393 396 } … … 484 487 orphan_removal_counter++; 485 488 if (orphan_removal_counter <0 || orphan_removal_counter >= 4) { 486 back_routes.clear(); 489 for (vector<back_route>::iterator i = back_routes.begin(); 490 i!=back_routes.end(); i++) { 491 back_route& br = *i; 492 if (difftime(br.lastseen,time(NULL))>5) i = 493 back_routes.erase(i); 494 } 487 495 logging_info("Running orphan removal"); 488 496 orphan_removal_counter = 0;
Note:
See TracChangeset
for help on using the changeset viewer.