Changeset 5885 for source/ariba/overlay


Ignore:
Timestamp:
Aug 12, 2009, 3:06:27 PM (15 years ago)
Author:
mies
Message:
 
Location:
source/ariba/overlay
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/overlay/BaseOverlay.cpp

    r5884 r5885  
    407407        LinkID next_link = overlayInterface->getNextLinkId(message->getSourceNode());
    408408        if (next_link == ld->overlayId) return;
     409        ld->setRelaying();
    409410
    410411        // try to find source node
  • source/ariba/overlay/modules/chord/Chord.cpp

    r5884 r5885  
    125125
    126126void Chord::discover_neighbors( const LinkID& link ) {
    127         uint8_t ttl = 1;
     127        uint8_t ttl = 4;
    128128        {
    129129                // send predecessor discovery
     
    255255                logging_info("new orphan: " << remote.toString()
    256256                                << " with link " << lnk.toString());
    257                 item = table->insert_orphan(remote);
    258 
    259                 // replace with new link
    260                 if (!item->info.isUnspecified() || item->info!=lnk)
    261                         baseoverlay.dropLink(item->info);
    262                 item->info = lnk;
     257                item = table->insert_orphan(remote)->info = lnk;
    263258        }
    264259
Note: See TracChangeset for help on using the changeset viewer.