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

Method _init_dir

src/iocore/cache/Stripe.cc:359–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359void
360Stripe::_init_dir()
361{
362 int b, s, l;
363
364 for (s = 0; s < this->directory.segments; s++) {
365 this->directory.header->freelist[s] = 0;
366 Dir *seg = this->directory.get_segment(s);
367 for (l = 1; l < DIR_DEPTH; l++) {
368 for (b = 0; b < this->directory.buckets; b++) {
369 Dir *bucket = dir_bucket(b, seg);
370 dir_free_entry(dir_bucket_row(bucket, l), s, this);
371 }
372 }
373 }
374}
375
376bool
377Stripe::flush_aggregate_write_buffer(int fd)

Callers 1

_clear_initMethod · 0.95

Calls 4

dir_free_entryFunction · 0.85
get_segmentMethod · 0.80
dir_bucketFunction · 0.70
dir_bucket_rowFunction · 0.70

Tested by

no test coverage detected