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

Method vol_init_data_internal

src/traffic_cache_tool/CacheDefs.cc:366–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366void
367StripeSM::vol_init_data_internal()
368{
369 this->_buckets =
370 ((this->_len.count() * 8192 - (this->_content - this->_start)) / cache_config_min_average_object_size) / DIR_DEPTH;
371 this->_segments = (this->_buckets + (((1 << 16) - 1) / DIR_DEPTH)) / ((1 << 16) / DIR_DEPTH);
372 this->_buckets = (this->_buckets + this->_segments - 1) / this->_segments;
373 this->_content = this->_start + Bytes(2 * vol_dirlen());
374}
375
376void
377StripeSM::vol_init_data()

Callers 1

vol_init_dataMethod · 0.95

Calls 1

countMethod · 0.45

Tested by

no test coverage detected