Ignore:
Timestamp:
Aug 4, 2009, 10:16:12 AM (15 years ago)
Author:
mies
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/overlay/modules/chord/Chord.cpp

    r5635 r5637  
    7474        logging_debug("request to setup link to " << endp.toString() );
    7575
    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);
    7979
    8080        // establish link via base overlay
     
    394394
    395395void Chord::eventFunction() {
    396         pending.clear();
    397396        stabilize_counter++;
    398         if (stabilize_counter == 2) {
     397        if (stabilize_counter == 3) {
     398                pending.clear();
    399399                size_t numNeighbors = 0;
    400400                for (size_t i = 0; i < table->size(); i++) {
Note: See TracChangeset for help on using the changeset viewer.