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

Function cachedb_pool_get

cachedb/cachedb_pool.c:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32static cachedb_pool_con *cachedb_pool = NULL;
33
34cachedb_pool_con* cachedb_pool_get(struct cachedb_id *id)
35{
36 cachedb_pool_con *it;
37
38 for (it=cachedb_pool;it;it=it->next)
39 if (cmp_cachedb_id(id,it->id)) {
40 it->ref++;
41 return it;
42 }
43
44 return 0;
45}
46
47cachedb_pool_con** filter_pool_by_scheme(str *scheme,int* lst_size)
48{

Callers 1

cachedb_do_initFunction · 0.85

Calls 1

cmp_cachedb_idFunction · 0.85

Tested by

no test coverage detected