Ignore:
Timestamp:
Aug 4, 2009, 5:30:38 PM (15 years ago)
Author:
mies
Message:
 
File:
1 edited

Legend:

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

    r5673 r5674  
    7474        logging_debug("Request to setup link to " << endp.toString() );
    7575
    76         // check if node is already present
    77         if (!node.isUnspecified() && table->get(node)!=NULL) {
    78                 logging_error("Node is already a neighbor!");
    79                 return LinkID::UNSPECIFIED;
    80         }
    81 
    8276        // check if we are already trying to establish a link
    8377        for (size_t i=0; i<pending.size(); i++)
     
    218212                // all nodes that I know, fingers, succ/pred
    219213                for (size_t i = 0; i < table->size(); i++){
    220                         if (/*(*table)[i]->ref_count != 0
    221                                         &&*/ !(*table)[i]->info.isUnspecified())
     214                        if ((*table)[i]->ref_count != 0
     215                                        && !(*table)[i]->info.isUnspecified())
    222216                                nodelist.push_back((*table)[i]->id);
    223217                }
     
    459453                }
    460454
    461 
    462455                // remove orphan links
    463456                orphan_removal_counter++;
     
    469462                                if (it->ref_count == 0 && !it->info.isUnspecified()) {
    470463                                        logging_info("Dropping orphaned link " << it->info.toString() << " to " << it->id.toString());
    471 //                                      baseoverlay.dropLink(it->info);
    472 //                                      it->info = LinkID::UNSPECIFIED;
     464                                        baseoverlay.dropLink(it->info);
     465                                        it->info = LinkID::UNSPECIFIED;
    473466                                }
    474467                        }
Note: See TracChangeset for help on using the changeset viewer.