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

Function Clear_Span

src/traffic_cache_tool/CacheTool.cc:1243–1257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1241}
1242
1243void
1244Clear_Span(const std::string &devicePath)
1245{
1246 Cache cache;
1247 if ((err = cache.loadSpan(SpanFile))) {
1248 cache.dumpSpans(Cache::SpanDumpDepth::SPAN);
1249 for (auto sp : cache._spans) {
1250 if (devicePath.size() > 0 && sp->_path.view() == devicePath) {
1251 printf("clearing %s\n", devicePath.data());
1252 sp->clearPermanently();
1253 }
1254 }
1255 }
1256 return;
1257}
1258
1259void
1260Check_Freelist(const std::string &devicePath)

Callers 1

mainFunction · 0.85

Calls 6

loadSpanMethod · 0.80
dumpSpansMethod · 0.80
clearPermanentlyMethod · 0.80
sizeMethod · 0.45
viewMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected