@@ -229,7 +229,7 @@ auto populateCacheWith(std::shared_ptr<CCDBFetcherHelper> const& helper,
229229 helper->mapURL2UUID [path].cacheMiss ++;
230230 helper->mapURL2UUID [path].minSize = std::min (v.size (), helper->mapURL2UUID [path].minSize );
231231 helper->mapURL2UUID [path].maxSize = std::max (v.size (), helper->mapURL2UUID [path].maxSize );
232- auto cacheId = allocator.adoptContainer (output, std::move (v), true , header::gSerializationMethodCCDB );
232+ auto cacheId = allocator.adoptContainer (output, std::move (v), DataAllocator::CacheStrategy::Always , header::gSerializationMethodCCDB );
233233 helper->mapURL2DPLCache [path] = cacheId;
234234 LOGP (debug, " Caching {} for {} (DPL id {})" , path, headers[" ETag" ], cacheId.value );
235235 continue ;
@@ -240,11 +240,11 @@ auto populateCacheWith(std::shared_ptr<CCDBFetcherHelper> const& helper,
240240 helper->mapURL2UUID [path].cacheMiss ++;
241241 helper->mapURL2UUID [path].minSize = std::min (v.size (), helper->mapURL2UUID [path].minSize );
242242 helper->mapURL2UUID [path].maxSize = std::max (v.size (), helper->mapURL2UUID [path].maxSize );
243- auto cacheId = allocator.adoptContainer (output, std::move (v), true , header::gSerializationMethodCCDB );
243+ auto cacheId = allocator.adoptContainer (output, std::move (v), DataAllocator::CacheStrategy::Always , header::gSerializationMethodCCDB );
244244 helper->mapURL2DPLCache [path] = cacheId;
245245 LOGP (debug, " Caching {} for {} (DPL id {})" , path, headers[" ETag" ], cacheId.value );
246246 // one could modify the adoptContainer to take optional old cacheID to clean:
247- // mapURL2DPLCache[URL] = ctx.outputs().adoptContainer(output, std::move(outputBuffer), true , mapURL2DPLCache[URL]);
247+ // mapURL2DPLCache[URL] = ctx.outputs().adoptContainer(output, std::move(outputBuffer), DataAllocator::CacheStrategy::Always , mapURL2DPLCache[URL]);
248248 continue ;
249249 }
250250 }
@@ -352,7 +352,7 @@ AlgorithmSpec CCDBHelpers::fetchFromCCDB()
352352 helper->mapURL2UUID [path].minSize = std::min (v.size (), helper->mapURL2UUID [path].minSize );
353353 helper->mapURL2UUID [path].maxSize = std::max (v.size (), helper->mapURL2UUID [path].maxSize );
354354 newOrbitResetTime = getOrbitResetTime (v);
355- auto cacheId = allocator.adoptContainer (output, std::move (v), true , header::gSerializationMethodNone );
355+ auto cacheId = allocator.adoptContainer (output, std::move (v), DataAllocator::CacheStrategy::Always , header::gSerializationMethodNone );
356356 helper->mapURL2DPLCache [path] = cacheId;
357357 LOGP (debug, " Caching {} for {} (DPL id {})" , path, headers[" ETag" ], cacheId.value );
358358 } else if (v.size ()) { // but should be overridden by fresh object
@@ -362,11 +362,11 @@ AlgorithmSpec CCDBHelpers::fetchFromCCDB()
362362 helper->mapURL2UUID [path].minSize = std::min (v.size (), helper->mapURL2UUID [path].minSize );
363363 helper->mapURL2UUID [path].maxSize = std::max (v.size (), helper->mapURL2UUID [path].maxSize );
364364 newOrbitResetTime = getOrbitResetTime (v);
365- auto cacheId = allocator.adoptContainer (output, std::move (v), true , header::gSerializationMethodNone );
365+ auto cacheId = allocator.adoptContainer (output, std::move (v), DataAllocator::CacheStrategy::Always , header::gSerializationMethodNone );
366366 helper->mapURL2DPLCache [path] = cacheId;
367367 LOGP (debug, " Caching {} for {} (DPL id {})" , path, headers[" ETag" ], cacheId.value );
368368 // one could modify the adoptContainer to take optional old cacheID to clean:
369- // mapURL2DPLCache[URL] = ctx.outputs().adoptContainer(output, std::move(outputBuffer), true , mapURL2DPLCache[URL]);
369+ // mapURL2DPLCache[URL] = ctx.outputs().adoptContainer(output, std::move(outputBuffer), DataAllocator::CacheStrategy::Always , mapURL2DPLCache[URL]);
370370 }
371371 // cached object is fine
372372 }
0 commit comments