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

Function dr_reload_data

modules/drouting/drouting.c:1395–1410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1393}
1394
1395static inline int dr_reload_data(int initial, const int is_inherit_state)
1396{
1397 struct head_db *part;
1398 int ret_val = 0;
1399
1400 for (part = head_db_start; part; part = part->next)
1401 if (dr_reload_data_head(part, &part->partition, initial, is_inherit_state) < 0)
1402 ret_val = -1;
1403
1404 /* make the new list the main list used by qrouting */
1405 lock_start_write(reload_lock);
1406 run_dr_cbs(DRCB_RLD_FINALIZE, NULL);
1407 lock_stop_write(reload_lock);
1408
1409 return ret_val;
1410}
1411
1412
1413#define dr_fix_avp_def_w_default( _pv_spec, _avp_id, _default, _name) \

Callers 2

rpc_dr_reload_dataFunction · 0.85
dr_reload_cmdFunction · 0.85

Calls 2

dr_reload_data_headFunction · 0.85
run_dr_cbsFunction · 0.85

Tested by

no test coverage detected