Changeset 5665 for source/ariba/overlay


Ignore:
Timestamp:
Aug 4, 2009, 3:44:21 PM (15 years ago)
Author:
mies
Message:
 
Location:
source/ariba/overlay/modules/chord
Files:
2 edited

Legend:

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

    r5664 r5665  
    354354                                // find next hop
    355355                                const route_item* item = table->get_next_hop(
    356                                                 m->getDestination());
    357                                 if (item->id == nodeid) break;
     356                                                m->getDestination(),true);
     357                                if (item == NULL || item->id == nodeid) break;
    358358                                logging_debug("routing discovery message to " <<
    359359                                                item->id.toString() );
  • source/ariba/overlay/modules/chord/detail/chord_routing_table.hpp

    r5663 r5665  
    248248
    249249        /// returns the next hop
    250         const item* get_next_hop( const nodeid_t& value ) {
     250        const item* get_next_hop( const nodeid_t& value, bool nts = false) {
    251251                ring_distance distance;
    252252                item* best_item = NULL;
    253253                for (size_t i=0; i<table.size(); i++) {
    254254                        item* curr = &table[i];
     255                        if (nts && curr->id == value) continue;
    255256
    256257                        // not not include orphans into routing!
Note: See TracChangeset for help on using the changeset viewer.