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

Function Simulate_Span_Allocation

src/traffic_cache_tool/CacheTool.cc:1138–1156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1136}
1137
1138void
1139Simulate_Span_Allocation()
1140{
1141 VolumeAllocator va;
1142
1143 if (VolumeFile.empty()) {
1144 err.note("Volume config file not set");
1145 }
1146 if (SpanFile.empty()) {
1147 err.note("Span file not set");
1148 }
1149
1150 if (err) {
1151 if ((err = va.load(SpanFile, VolumeFile)).is_ok()) {
1152 err = va.fillAllSpans();
1153 va.dumpVolumes();
1154 }
1155 }
1156}
1157
1158void
1159Clear_Spans()

Callers

nothing calls this directly

Calls 6

fillAllSpansMethod · 0.80
dumpVolumesMethod · 0.80
emptyMethod · 0.45
noteMethod · 0.45
is_okMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected