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

Method allocateSpan

src/traffic_cache_tool/CacheTool.cc:343–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343Errata
344VolumeAllocator::allocateSpan(swoc::file::path const &input_file_path)
345{
346 Errata zret;
347 for (auto span : _cache._spans) {
348 if (span->_path.view() == input_file_path.view()) {
349 std::cout << "===============================" << std::endl;
350 if (span->_header) {
351 zret.note("Disk already initialized with valid header");
352 } else {
353 this->allocateFor(*span);
354 span->updateHeader();
355 for (auto &strp : span->_stripes) {
356 strp->updateHeaderFooter();
357 }
358 }
359 }
360 }
361 for (auto &_v : _av) {
362 std::cout << _v._size << std::endl;
363 }
364 return zret;
365}
366
367Errata
368VolumeAllocator::fillAllSpans()

Callers 1

Init_diskFunction · 0.80

Calls 5

allocateForMethod · 0.95
updateHeaderMethod · 0.80
updateHeaderFooterMethod · 0.80
viewMethod · 0.45
noteMethod · 0.45

Tested by

no test coverage detected