MCPcopy Create free account
hub / github.com/apache/trafficserver / copy

Method copy

src/iocore/hostdb/P_RefCountCache.h:346–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344
345template <class C>
346void
347RefCountCachePartition<C>::copy(std::vector<RefCountCacheHashEntry *> &items)
348{
349 for (auto &&it : this->item_map) {
350 RefCountCacheHashEntry *val = RefCountCacheHashEntry::alloc();
351 val->set(it.item.get(), it.meta.key, it.meta.size, it.meta.expiry_time);
352 items.push_back(val);
353 }
354}
355
356template <class C>
357swoc::IntrusiveHashMap<RefCountCacheLinkage> &

Callers 4

openReadFromWriterMethod · 0.45
handle_cache_eventMethod · 0.45
handle_cache_eventMethod · 0.45
handle_cache_eventMethod · 0.45

Calls 3

setMethod · 0.45
getMethod · 0.45
push_backMethod · 0.45

Tested by 3

handle_cache_eventMethod · 0.36
handle_cache_eventMethod · 0.36
handle_cache_eventMethod · 0.36