Changeset 5716 for source/ariba/overlay/modules/chord
- Timestamp:
- Aug 5, 2009, 3:31:41 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/chord/Chord.cpp
r5706 r5716 216 216 // all nodes that I know, fingers, succ/pred 217 217 for (size_t i = 0; i < table->size(); i++){ 218 if ( (*table)[i]->ref_count != 0219 && !(*table)[i]->info.isUnspecified())218 if (/*(*table)[i]->ref_count != 0 219 &&*/ !(*table)[i]->info.isUnspecified()) 220 220 nodelist.push_back((*table)[i]->id); 221 221 } … … 225 225 nodelist.push_back( *(table->get_predesessor()) ); 226 226 } 227 228 227 if( table->get_successor() != NULL ){ 229 230 228 OverlayInterface::NodeList::iterator i = 231 229 std::find( nodelist.begin(), nodelist.end(), *(table->get_successor()) ); … … 261 259 logging_info("new orphan: " << remote.toString() 262 260 << " with link " << lnk.toString()); 263 discover_neighbors( lnk );264 261 table->insert_orphan(remote)->info = lnk; 265 262 } 263 264 discover_neighbors( lnk ); 265 send_discovery_to(remote); 266 266 267 267 vector<LinkID>::iterator it = std::find(bootstrapLinks.begin(), bootstrapLinks.end(), lnk); … … 435 435 void Chord::eventFunction() { 436 436 stabilize_counter++; 437 if (stabilize_counter < 0 || stabilize_counter == 3) {437 if (stabilize_counter < 0 || stabilize_counter == 2) { 438 438 439 439 // reset counter … … 468 468 // remove orphan links 469 469 orphan_removal_counter++; 470 if (orphan_removal_counter <0 || orphan_removal_counter >= 2) {470 if (orphan_removal_counter <0 || orphan_removal_counter >= 4) { 471 471 logging_info("Running orphan removal"); 472 472 orphan_removal_counter = 0;
Note:
See TracChangeset
for help on using the changeset viewer.