Changeset 5637
- Timestamp:
- Aug 4, 2009, 10:16:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/chord/Chord.cpp
r5635 r5637 74 74 logging_debug("request to setup link to " << endp.toString() ); 75 75 76 //for (size_t i=0; i<pending.size(); i++)77 //if (pending[i]==node) return LinkID::UNSPECIFIED;78 //pending.push_back(node);76 for (size_t i=0; i<pending.size(); i++) 77 if (pending[i]==node) return LinkID::UNSPECIFIED; 78 pending.push_back(node); 79 79 80 80 // establish link via base overlay … … 394 394 395 395 void Chord::eventFunction() { 396 pending.clear();397 396 stabilize_counter++; 398 if (stabilize_counter == 2) { 397 if (stabilize_counter == 3) { 398 pending.clear(); 399 399 size_t numNeighbors = 0; 400 400 for (size_t i = 0; i < table->size(); i++) {
Note:
See TracChangeset
for help on using the changeset viewer.