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

Function cachedb_put_connection

cachedb/cachedb.c:241–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241int cachedb_put_connection(str *cachedb_name,cachedb_con *con)
242{
243 cachedb_engine *cde;
244
245 cde = lookup_cachedb(cachedb_name);
246 if(cde == NULL)
247 {
248 LM_ERR("Wrong argument <%.*s> - no cachedb system with"
249 " this name registered\n",
250 cachedb_name->len,cachedb_name->s);
251 return -1;
252 }
253
254 LM_DBG("in cachedb_put_connection %p\n",con);
255 if (cachedb_insert_connection(cde,con) < 0) {
256 LM_ERR("failed to insert new connection\n");
257 return -1;
258 }
259
260 return 0;
261}
262
263cachedb_con *cachedb_get_connection(cachedb_engine *cde,str *group_name)
264{

Callers 8

child_initFunction · 0.85
child_initFunction · 0.85
mod_initFunction · 0.85
child_initFunction · 0.85
child_initFunction · 0.85
child_initFunction · 0.85
child_initFunction · 0.85
child_initFunction · 0.85

Calls 2

lookup_cachedbFunction · 0.85

Tested by

no test coverage detected