Changeset 9971 for source/ariba/overlay
- Timestamp:
- Jul 8, 2011, 6:17:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r9964 r9971 75 75 ttl(value.ttl), last_update(value.last_update), 76 76 last_change(value.last_change), value(value.value.clone()) { 77 78 77 } 79 78 … … 108 107 // is persistent? yes-> always return false 109 108 if (ttl==0) return false; 110 111 109 // return true, if ttl is elapsed 112 110 return ( difftime( time(NULL), this->last_update ) > ttl ); … … 135 133 for (vector<ValueEntry>::iterator i = values.begin(); 136 134 i != values.end(); i++ ) 137 if (i->is_ttl_elapsed()) i = values.erase(i)-1; 135 if (i->is_ttl_elapsed()) 136 i = values.erase(i)-1; 138 137 } 139 138 }; … … 2283 2282 /// requests data stored using key 2284 2283 void BaseOverlay::dhtGet( const Data& key, const ServiceID& service ) { 2285 // log: removeget2284 // log: get 2286 2285 logging_info("DHT-Get: Trying to resolve key=" << 2287 2286 key << " for service=" << service.toString() );
Note:
See TracChangeset
for help on using the changeset viewer.