Ignore:
Timestamp:
Aug 6, 2009, 3:20:32 PM (15 years ago)
Author:
mies
Message:
 
File:
1 edited

Legend:

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

    r5748 r5750  
    5757
    5858        // create routing table
    59         this->table = new chord_routing_table(_nodeid, 4);
     59        this->table = new chord_routing_table(_nodeid, 2);
    6060        orphan_removal_counter = 0;
    6161        discovery_count = 0;
     
    124124                dmsg.setSourceRelay(baseoverlay.getRelayNode(nodeid));
    125125                dmsg.setFollowType(Discovery::successor);
    126                 dmsg.setTTL((uint8_t)3);
     126                dmsg.setTTL((uint8_t)2);
    127127                cmsg.encapsulate(&dmsg);
    128128                send(&cmsg, lnk);
     
    135135                dmsg.setSourceRelay(baseoverlay.getRelayNode(nodeid));
    136136                dmsg.setFollowType(Discovery::predecessor);
    137                 dmsg.setTTL((uint8_t)3);
     137                dmsg.setTTL((uint8_t)2);
    138138                cmsg.encapsulate(&dmsg);
    139139                send(&cmsg, lnk);
     
    220220                // all nodes that I know, fingers, succ/pred
    221221                for (size_t i = 0; i < table->size(); i++){
    222                         if (/*(*table)[i]->ref_count != 0
    223                                         &&*/ !(*table)[i]->info.isUnspecified())
     222                        if ((*table)[i]->ref_count != 0
     223                                        && !(*table)[i]->info.isUnspecified())
    224224                                nodelist.push_back((*table)[i]->id);
    225225                }
     
    267267
    268268        discover_neighbors( lnk );
    269         send_discovery_to(remote);
    270269
    271270        vector<LinkID>::iterator it = std::find(bootstrapLinks.begin(), bootstrapLinks.end(), lnk);
Note: See TracChangeset for help on using the changeset viewer.