Ignore:
Timestamp:
Aug 11, 2009, 8:39:47 AM (15 years ago)
Author:
Christoph Mayer
Message:

watchdog bootstrapping und kleine relay fixes

File:
1 edited

Legend:

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

    r5803 r5838  
    370370        }
    371371
    372 
    373372        //ovl.visShowNodeBubble ( ovlId, nodeId, "joining..." );
    374373        logging_info( "Starting to join spovnet " << id.toString() <<
     
    399398                const LinkID& lnk = bc->establishLink( bootstrapEp );
    400399                bootstrapLinks.push_back(lnk);
     400
    401401                logging_info("join process initiated for " << id.toString() << "...");
     402
    402403        }
    403404}
     
    11071108                                state = BaseOverlayStateCompleted;
    11081109                                overlayInterface->createOverlay();
    1109 
    11101110                                overlayInterface->joinOverlay( replyMsg->getBootstrapEndpoint() );
     1111
     1112                                //record bootstrap ep as good endpoint to join
     1113                                overlayBootstrap.recordJoin( replyMsg->getBootstrapEndpoint() );
    11111114
    11121115                                // update ovlvis
     
    15551558
    15561559vector<NodeID> BaseOverlay::getOverlayNeighbors(bool deep) const {
     1560
     1561        vector<NodeID> nodes = overlayInterface->getKnownNodes(deep);
     1562
    15571563        // the known nodes _can_ also include our node, so we remove ourself
    1558         vector<NodeID> nodes = overlayInterface->getKnownNodes(deep);
    1559 
    15601564        vector<NodeID>::iterator i = find( nodes.begin(), nodes.end(), this->nodeId );
    15611565        if( i != nodes.end() ) nodes.erase( i );
Note: See TracChangeset for help on using the changeset viewer.