zabbix-agent2/src/libs/zbxdbcache/dbconfig.c
/******************************************************************************
 *                                                                            *
 * Function: dc_trigger_update_topology                                       *
 *                                                                            *
 * Purpose: updates trigger topology after trigger dependency changes         *
 *                                                                            *
 ******************************************************************************/
dc_trigger_update_topology

Purpose: updates trigger topology after trigger dependency changes
dc_trigger_update_topology Purpose : updates trigger topology after trigger dependency changes
static void	dc_trigger_update_topology(void)
{
	zbx_hashset_iter_t	iter;
	ZBX_DC_TRIGGER		*trigger;
	zbx_hashset_iter_reset(&config->triggers, &iter);
	while (NULL != (trigger = (ZBX_DC_TRIGGER *)zbx_hashset_iter_next(&iter)))
		trigger->topoindex = 1;
	DCconfig_sort_triggers_topologically();
}
static void dc_trigger_update_topology ( void ) { zbx_hashset_iter_t iter ; ZBX_DC_TRIGGER * trigger ; zbx_hashset_iter_reset ( & config -> triggers , & iter ) ; while ( NULL != ( trigger = ( ZBX_DC_TRIGGER * ) zbx_hashset_iter_next ( & iter ) ) ) trigger -> topoindex = 1 ; DCconfig_sort_triggers_topologically ( ) ; }
Function: dc_trigger_update_topology                                       
                                                                            
 Purpose: updates trigger topology after trigger dependency changes
Function : dc_trigger_update_topology Purpose : updates trigger topology after trigger dependency changes