zabbix-agent2/src/libs/zbxdbcache/dbconfig.c
/******************************************************************************
 *                                                                            *
 * Function: DCconfig_unlock_all_triggers                                     *
 *                                                                            *
 * Purpose: Unlocks all locked triggers before doing full history sync at     *
 *          program exit                                                      *
 *                                                                            *
 ******************************************************************************/
DCconfig_unlock_all_triggers

Purpose: Unlocks all locked triggers before doing full history sync at
program exit
DCconfig_unlock_all_triggers Purpose : Unlocks all locked triggers before doing full history sync at program exit
void	DCconfig_unlock_all_triggers(void)
{
	ZBX_DC_TRIGGER		*dc_trigger;
	zbx_hashset_iter_t	iter;
	WRLOCK_CACHE;
	zbx_hashset_iter_reset(&config->triggers, &iter);
	while (NULL != (dc_trigger = (ZBX_DC_TRIGGER *)zbx_hashset_iter_next(&iter)))
		dc_trigger->locked = 0;
	UNLOCK_CACHE;
}
void DCconfig_unlock_all_triggers ( void ) { ZBX_DC_TRIGGER * dc_trigger ; zbx_hashset_iter_t iter ; WRLOCK_CACHE ; zbx_hashset_iter_reset ( & config -> triggers , & iter ) ; while ( NULL != ( dc_trigger = ( ZBX_DC_TRIGGER * ) zbx_hashset_iter_next ( & iter ) ) ) dc_trigger -> locked = 0 ; UNLOCK_CACHE ; }
Function: DCconfig_unlock_all_triggers                                     
                                                                            
 Purpose: Unlocks all locked triggers before doing full history sync at     
          program exit
Function : DCconfig_unlock_all_triggers Purpose : Unlocks all locked triggers before doing full history sync at program exit