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

Function TSCacheScan

src/api/InkAPI.cc:6224–6239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6222}
6223
6224TSAction
6225TSCacheScan(TSCont contp, TSCacheKey key, int KB_per_second)
6226{
6227 sdk_assert(sdk_sanity_check_iocore_structure(contp) == TS_SUCCESS);
6228 // NOTE: key can be NULl here, so don't check for it.
6229
6230 FORCE_PLUGIN_SCOPED_MUTEX(contp);
6231
6232 INKContInternal *i = reinterpret_cast<INKContInternal *>(contp);
6233
6234 if (key) {
6235 CacheInfo *info = reinterpret_cast<CacheInfo *>(key);
6236 return reinterpret_cast<TSAction>(cacheProcessor.scan(i, info->hostname, info->len, KB_per_second));
6237 }
6238 return reinterpret_cast<TSAction>(cacheProcessor.scan(i, nullptr, 0, KB_per_second));
6239}
6240
6241/************************ REC Stats API **************************/
6242int

Callers 1

handle_ioFunction · 0.85

Calls 2

scanMethod · 0.45

Tested by

no test coverage detected