| 1104 | } |
| 1105 | |
| 1106 | static int |
| 1107 | config_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. |
nothing calls this directly
no test coverage detected