Changeset 6878
- Timestamp:
- Nov 6, 2009, 1:42:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r6874 r6878 1112 1112 1113 1113 // return own end-point descriptor 1114 if( link == LinkID::UNSPECIFIED)1114 if( link.isUnspecified() ) 1115 1115 return bc->getEndpointDescriptor(); 1116 1116 … … 1132 1132 // no joined and request remote descriptor? -> fail! 1133 1133 if( overlayInterface == NULL ) { 1134 logging_error( " overlay interface not set, cannot resolve endpoint" );1134 logging_error( "Overlay interface not set, cannot resolve end-point." ); 1135 1135 return EndpointDescriptor::UNSPECIFIED(); 1136 1136 } 1137 1137 1138 // resolve end-point descriptor from the base-overlay routing table1139 const EndpointDescriptor& ep = overlayInterface->resolveNode( node );1140 if(ep.toString() != "") return ep;1138 // // resolve end-point descriptor from the base-overlay routing table 1139 // const EndpointDescriptor& ep = overlayInterface->resolveNode( node ); 1140 // if(ep.toString() != "") return ep; 1141 1141 1142 1142 // see if we can find the node in our own table 1143 1143 BOOST_FOREACH(const LinkDescriptor* ld, links){ 1144 1144 if(ld->remoteNode != node) continue; 1145 const EndpointDescriptor& ep = bc->getEndpointDescriptor(ld->communicationId); 1145 const EndpointDescriptor& ep = 1146 bc->getEndpointDescriptor(ld->communicationId); 1146 1147 if(ep.toString() == "") continue; 1147 1148 if(ep != EndpointDescriptor::UNSPECIFIED()) return ep; 1148 1149 } 1150 1151 logging_warn( "No EndpointDescriptor found for node " << node ); 1152 logging_warn( debugInformation() ); 1149 1153 1150 1154 return EndpointDescriptor::UNSPECIFIED(); … … 2264 2268 2265 2269 // dump overlay information 2270 s << "Long debug info ... [see below]" << endl << endl; 2266 2271 s << "--- overlay information ----------------------" << endl; 2267 2272 s << overlayInterface->debugInformation() << endl; 2268 s << "----------------------------------------------" << endl;2269 2273 2270 2274 // dump link state … … 2274 2278 i++; 2275 2279 } 2276 s << endl ;2280 s << endl << endl; 2277 2281 2278 2282 return s.str();
Note:
See TracChangeset
for help on using the changeset viewer.