Changeset 6880 for source/ariba/overlay
- Timestamp:
- Nov 6, 2009, 2:01:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r6878 r6880 1150 1150 1151 1151 logging_warn( "No EndpointDescriptor found for node " << node ); 1152 logging_warn( debugInformation() );1152 logging_warn( const_cast<BaseOverlay*>(this)->debugInformation() ); 1153 1153 1154 1154 return EndpointDescriptor::UNSPECIFIED(); … … 2101 2101 BOOST_FOREACH( DHTEntry& entry, localDHT->entries ) { 2102 2102 BOOST_FOREACH( ValueEntry& value, entry.values ) 2103 dhtPut(entry.key, value.get_value(), 0, true, true );2103 dhtPut(entry.key, value.get_value(), 0, false, true ); 2104 2104 } 2105 2105 } … … 2137 2137 switch (msg->getType()) { 2138 2138 case OverlayMsg::typeDHTPut: { 2139 if (dhtMsg->doReplace()) dht->remove(dhtMsg->getKey()); 2140 BOOST_FOREACH( Data value, dhtMsg->getValues() ) 2141 dht->put(dhtMsg->getKey(), value, dhtMsg->getTTL() ); 2139 logging_debug("DHT: Attempt to store values for key " 2140 << dhtMsg->getKey()); 2141 if (dhtMsg->doReplace()) { 2142 logging_debug("DHT: Attempt to replace key: remove old values first!"); 2143 dht->remove(dhtMsg->getKey()); 2144 } 2145 BOOST_FOREACH( Data value, dhtMsg->getValues() ) { 2146 logging_debug("DHT: Stored value: " << value ); 2147 dht->put(dhtMsg->getKey(), value, dhtMsg->getTTL() ); 2148 } 2142 2149 break; 2143 2150 }
Note:
See TracChangeset
for help on using the changeset viewer.