| 206 | } |
| 207 | |
| 208 | static int child_init(int rank) |
| 209 | { |
| 210 | int i; |
| 211 | |
| 212 | LM_DBG("Child initialization\n"); |
| 213 | |
| 214 | for(i=0;i<ph_framework_data->ph_db_urls_size;i++){ |
| 215 | LM_DBG("connecting to db[%d] [%s]\n", |
| 216 | i, ph_framework_data->ph_db_urls[i].db_url.s); |
| 217 | |
| 218 | if (connect_http_db(ph_framework_data, i)) { |
| 219 | LM_ERR("failed to connect to database\n"); |
| 220 | return -1; |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | return 0; |
| 225 | } |
| 226 | |
| 227 | |
| 228 | static void destroy(void) |
nothing calls this directly
no test coverage detected