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

Function Clear_Spans

src/traffic_cache_tool/CacheTool.cc:1158–1173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1156}
1157
1158void
1159Clear_Spans()
1160{
1161 Cache cache;
1162
1163 if (!OPEN_RW_FLAG) {
1164 err.note("Writing Not Enabled.. Please use --write to enable writing to disk");
1165 return;
1166 }
1167
1168 if ((err = cache.loadSpan(SpanFile))) {
1169 for (auto *span : cache._spans) {
1170 span->clearPermanently();
1171 }
1172 }
1173}
1174
1175void
1176Find_Stripe(swoc::file::path const &input_file_path)

Callers 1

mainFunction · 0.85

Calls 3

loadSpanMethod · 0.80
clearPermanentlyMethod · 0.80
noteMethod · 0.45

Tested by

no test coverage detected