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

Function lb_connect_db

modules/load_balancer/lb_db.c:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61
62int lb_connect_db(const str *db_url)
63{
64 if (lb_db_handle) {
65 LM_CRIT("BUG - db connection found already open\n");
66 return -1;
67 }
68 if ((lb_db_handle = lb_dbf.init(db_url)) == 0)
69 return -1;
70
71 return 0;
72}
73
74void lb_close_db(void)
75{

Callers 2

child_initFunction · 0.85
init_lb_dbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected