Changeset 5750 for source/ariba/overlay/modules
- Timestamp:
- Aug 6, 2009, 3:20:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/chord/Chord.cpp
r5748 r5750 57 57 58 58 // create routing table 59 this->table = new chord_routing_table(_nodeid, 4);59 this->table = new chord_routing_table(_nodeid, 2); 60 60 orphan_removal_counter = 0; 61 61 discovery_count = 0; … … 124 124 dmsg.setSourceRelay(baseoverlay.getRelayNode(nodeid)); 125 125 dmsg.setFollowType(Discovery::successor); 126 dmsg.setTTL((uint8_t) 3);126 dmsg.setTTL((uint8_t)2); 127 127 cmsg.encapsulate(&dmsg); 128 128 send(&cmsg, lnk); … … 135 135 dmsg.setSourceRelay(baseoverlay.getRelayNode(nodeid)); 136 136 dmsg.setFollowType(Discovery::predecessor); 137 dmsg.setTTL((uint8_t) 3);137 dmsg.setTTL((uint8_t)2); 138 138 cmsg.encapsulate(&dmsg); 139 139 send(&cmsg, lnk); … … 220 220 // all nodes that I know, fingers, succ/pred 221 221 for (size_t i = 0; i < table->size(); i++){ 222 if ( /*(*table)[i]->ref_count != 0223 && */!(*table)[i]->info.isUnspecified())222 if ((*table)[i]->ref_count != 0 223 && !(*table)[i]->info.isUnspecified()) 224 224 nodelist.push_back((*table)[i]->id); 225 225 } … … 267 267 268 268 discover_neighbors( lnk ); 269 send_discovery_to(remote);270 269 271 270 vector<LinkID>::iterator it = std::find(bootstrapLinks.begin(), bootstrapLinks.end(), lnk);
Note:
See TracChangeset
for help on using the changeset viewer.