| 282 | } |
| 283 | |
| 284 | void cachedb_end_connections(str *cachedb_name) |
| 285 | { |
| 286 | cachedb_engine *cde; |
| 287 | cachedb_con_list *it; |
| 288 | |
| 289 | cde = lookup_cachedb(cachedb_name); |
| 290 | if(cde == NULL) { |
| 291 | LM_ERR("Wrong argument <%.*s> - no cachedb system with" |
| 292 | " this name registered\n", |
| 293 | cachedb_name->len,cachedb_name->s); |
| 294 | return; |
| 295 | } |
| 296 | |
| 297 | if (cde->default_connection) |
| 298 | cde->cdb_func.destroy(cde->default_connection); |
| 299 | |
| 300 | for (it=cde->connections;it;it=it->next) |
| 301 | cde->cdb_func.destroy(it->connection); |
| 302 | } |
| 303 | |
| 304 | |
| 305 | int cachedb_remove(str* cachedb_name, str* attr) |
no test coverage detected