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

Method dump_template_tables

src/proxy/http/HttpBodyFactory.cc:207–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void
208HttpBodyFactory::dump_template_tables(FILE *fp)
209{
210 lock();
211 if (table_of_sets) {
212 for (const auto &it1 : *table_of_sets.get()) {
213 HttpBodySet *body_set = static_cast<HttpBodySet *>(it1.second);
214 if (body_set) {
215 fprintf(fp, "set %s: name '%s', lang '%s', charset '%s'\n", it1.first.c_str(), body_set->set_name,
216 body_set->content_language, body_set->content_charset);
217
218 ///////////////////////////////////////////
219 // loop over body-types->body hash table //
220 ///////////////////////////////////////////
221
222 ink_assert(body_set->is_sane());
223 if (body_set->table_of_pages) {
224 for (const auto &it2 : *body_set->table_of_pages.get()) {
225 fprintf(fp, " %-30s: %" PRId64 " bytes\n", it2.first.c_str(), it2.second->byte_count);
226 }
227 }
228 }
229 }
230 }
231
232 unlock();
233}
234
235////////////////////////////////////////////////////////////////////////
236//

Callers

nothing calls this directly

Calls 5

lockFunction · 0.85
unlockFunction · 0.85
getMethod · 0.45
c_strMethod · 0.45
is_saneMethod · 0.45

Tested by

no test coverage detected