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

Function dp_rpc_data_load

modules/dialplan/dialplan.c:449–456  ·  view source on GitHub ↗

RPC function for (re)loading (no db init) data for all partitions; * This is fired from child_init(child==1) only once, so close connections * when done */

Source from the content-addressed store, hash-verified

447 * This is fired from child_init(child==1) only once, so close connections
448 * when done */
449static void dp_rpc_data_load(int sender_id, void *unused)
450{
451 if(dp_load_all_db(1) != 0){
452 LM_ERR("failed to reload database\n");
453 return;
454 }
455 dp_disconnect_all_db();
456}
457
458
459static int child_init(int rank)

Callers

nothing calls this directly

Calls 2

dp_load_all_dbFunction · 0.85
dp_disconnect_all_dbFunction · 0.85

Tested by

no test coverage detected