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

Function config_handler

plugins/stats_over_http/stats_over_http.cc:1106–1119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1104}
1105
1106static int
1107config_handler(TSCont cont, TSEvent /* event ATS_UNUSED */, void * /* edata ATS_UNUSED */)
1108{
1109 config_holder_t *config_holder;
1110 config_holder = (config_holder_t *)TSContDataGet(cont);
1111 load_config_file(config_holder);
1112
1113 /* We received a reload, check if the path value was removed since it was not set after load.
1114 If unset, then we'll use the default */
1115 if (config_holder->config->stats_path == "") {
1116 config_holder->config->stats_path = DEFAULT_URL_PATH;
1117 }
1118 return 0;
1119}
1120
1121//
1122// Compilation time unit tests.

Callers

nothing calls this directly

Calls 2

TSContDataGetFunction · 0.85
load_config_fileFunction · 0.85

Tested by

no test coverage detected