Changeset 6880


Ignore:
Timestamp:
Nov 6, 2009, 2:01:22 PM (14 years ago)
Author:
mies
Message:
 
File:
1 edited

Legend:

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

    r6878 r6880  
    11501150
    11511151        logging_warn( "No EndpointDescriptor found for node " << node );
    1152         logging_warn( debugInformation() );
     1152        logging_warn( const_cast<BaseOverlay*>(this)->debugInformation() );
    11531153
    11541154        return EndpointDescriptor::UNSPECIFIED();
     
    21012101        BOOST_FOREACH( DHTEntry& entry, localDHT->entries ) {
    21022102                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 );
    21042104        }
    21052105}
     
    21372137        switch (msg->getType()) {
    21382138        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                }
    21422149                break;
    21432150        }
Note: See TracChangeset for help on using the changeset viewer.