Changeset 6874 for source/ariba/overlay/BaseOverlay.cpp
- Timestamp:
- Nov 6, 2009, 12:57:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r6873 r6874 2097 2097 BOOST_FOREACH( DHTEntry& entry, localDHT->entries ) { 2098 2098 BOOST_FOREACH( ValueEntry& value, entry.values ) 2099 dhtPut(entry.key, value.get_value(), 0, true );2099 dhtPut(entry.key, value.get_value(), 0, true, true ); 2100 2100 } 2101 2101 } … … 2171 2171 2172 2172 /// put a value to the DHT with a ttl given in seconds 2173 void BaseOverlay::dhtPut( const Data& key, const Data& value, int ttl, bool replace ) {2173 void BaseOverlay::dhtPut( const Data& key, const Data& value, int ttl, bool replace, bool no_local_refresh ) { 2174 2174 2175 2175 logging_info("DHT: putting key=" << key … … 2180 2180 2181 2181 2182 // put into local data store (for refreshes) 2183 if (replace) localDHT->remove(key); 2184 localDHT->put(key, value, ttl); 2182 if (!no_local_refresh) { 2183 // put into local data store (for refreshes) 2184 if (replace) localDHT->remove(key); 2185 localDHT->put(key, value, ttl); 2186 } 2185 2187 2186 2188 // calculate hash
Note:
See TracChangeset
for help on using the changeset viewer.