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

Method init_dir

src/traffic_cache_tool/CacheDefs.cc:603–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601}
602
603void
604StripeSM::init_dir()
605{
606 for (int s = 0; s < this->_segments; s++) {
607 this->freelist[s] = 0;
608 CacheDirEntry *seg = this->dir_segment(s);
609 int l, b;
610 for (l = 1; l < DIR_DEPTH; l++) {
611 for (b = 0; b < this->_buckets; b++) {
612 CacheDirEntry *bucket = dir_bucket(b, seg);
613 this->dir_free_entry(dir_bucket_row(bucket, l), s);
614 // std::cout<<"freelist"<<this->freelist[s]<<std::endl;
615 }
616 }
617 }
618}
619
620Errata
621StripeSM::loadDir()

Callers

nothing calls this directly

Calls 4

dir_segmentMethod · 0.95
dir_free_entryMethod · 0.95
dir_bucketFunction · 0.70
dir_bucket_rowFunction · 0.70

Tested by

no test coverage detected