MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / cachedb_end_connections

Function cachedb_end_connections

cachedb/cachedb.c:284–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284void 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
305int cachedb_remove(str* cachedb_name, str* attr)

Callers 7

destroyFunction · 0.85
destroyFunction · 0.85
destroyFunction · 0.85
destroyFunction · 0.85
destroyFunction · 0.85
mod_destroyFunction · 0.85
destroyFunction · 0.85

Calls 1

lookup_cachedbFunction · 0.85

Tested by

no test coverage detected