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

Function Init_disk

src/traffic_cache_tool/CacheTool.cc:1281–1294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1279}
1280
1281void
1282Init_disk(swoc::file::path const &input_file_path)
1283{
1284 Cache cache;
1285 VolumeAllocator va;
1286
1287 if (!OPEN_RW_FLAG) {
1288 err.note("Writing Not Enabled.. Please use --write to enable writing to disk");
1289 return;
1290 }
1291
1292 err = va.load(SpanFile, VolumeFile);
1293 va.allocateSpan(input_file_path);
1294}
1295
1296void
1297Get_Response(swoc::file::path const &input_file_path)

Callers 1

mainFunction · 0.85

Calls 3

allocateSpanMethod · 0.80
noteMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected