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

Method fillAllSpans

src/traffic_cache_tool/CacheTool.cc:367–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367Errata
368VolumeAllocator::fillAllSpans()
369{
370 Errata zret;
371 // clear all current volume allocations.
372 for (auto &v : _av) {
373 v._size.assign(0);
374 }
375 // Allocate for each span, clearing as it goes.
376 _cache.clearAllocation();
377 for (auto span : _cache._spans) {
378 this->allocateFor(*span);
379 }
380 return zret;
381}
382
383Errata
384VolumeAllocator::allocateFor(Span &span)

Callers 1

Simulate_Span_AllocationFunction · 0.80

Calls 3

allocateForMethod · 0.95
clearAllocationMethod · 0.80
assignMethod · 0.45

Tested by

no test coverage detected