| 6222 | } |
| 6223 | |
| 6224 | TSAction |
| 6225 | TSCacheScan(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 **************************/ |
| 6242 | int |
no test coverage detected