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

Function Scan_Cache

src/traffic_cache_tool/CacheTool.cc:1348–1365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1346}
1347
1348void
1349Scan_Cache(swoc::file::path const &regex_path)
1350{
1351 Cache cache;
1352 std::vector<std::thread> threadPool;
1353 if ((err = cache.loadSpan(SpanFile))) {
1354 if (err.length()) {
1355 return;
1356 }
1357 cache.dumpSpans(Cache::SpanDumpDepth::SPAN);
1358 for (auto sp : cache._spans) {
1359 threadPool.emplace_back(scan_span, sp, regex_path);
1360 }
1361 for (auto &th : threadPool) {
1362 th.join();
1363 }
1364 }
1365}
1366
1367int
1368main([[maybe_unused]] int argc, const char *argv[])

Callers 1

mainFunction · 0.85

Calls 5

loadSpanMethod · 0.80
dumpSpansMethod · 0.80
emplace_backMethod · 0.80
joinMethod · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected