| 204 | |
| 205 | |
| 206 | void destroy_data(void) |
| 207 | { |
| 208 | dp_connection_list_t *el, *next; |
| 209 | |
| 210 | LM_DBG("Destroying data\n"); |
| 211 | for (el = dp_conns; el && (next = el->next, 1); el = next) { |
| 212 | destroy_hash(&el->hash[0]); |
| 213 | destroy_hash(&el->hash[1]); |
| 214 | lock_destroy_rw(el->ref_lock); |
| 215 | |
| 216 | shm_free(el->table_name.s); |
| 217 | shm_free(el->partition.s); |
| 218 | shm_free(el->db_url.s); |
| 219 | shm_free(el); |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | int dp_load_all_db(int initial) |
| 224 | { |
no test coverage detected