zabbix-agent2/src/libs/zbxdbupgrade/dbupgrade_5030.c
/******************************************************************************
 *                                                                            *
 * Function: dbpatch_update_trigger                                           *
 *                                                                            *
 * Purpose: replace {functionid} occurrences in trigger expression and        *
 *          recovery expression with the specified replacement string         *
 *                                                                            *
 ******************************************************************************/
dbpatch_update_trigger

Purpose: replace {functionid} occurrences in trigger expression and
recovery expression with the specified replacement string
dbpatch_update_trigger Purpose : replace { functionid } occurrences in trigger expression and recovery expression with the specified replacement string
static void	dbpatch_update_trigger(zbx_dbpatch_trigger_t *trigger, zbx_uint64_t functionid, const char *replace)
{
	if (SUCCEED == dbpatch_update_expression(&trigger->expression, functionid, replace))
		trigger->flags |= ZBX_DBPATCH_TRIGGER_UPDATE_EXPRESSION;
	if (TRIGGER_RECOVERY_MODE_RECOVERY_EXPRESSION == trigger->recovery_mode)
	{
		if (SUCCEED == dbpatch_update_expression(&trigger->recovery_expression, functionid, replace))
			trigger->flags |= ZBX_DBPATCH_TRIGGER_UPDATE_RECOVERY_EXPRESSION;
	}
}
static void dbpatch_update_trigger ( zbx_dbpatch_trigger_t * trigger , zbx_uint64_t functionid , const char * replace ) { if ( SUCCEED == dbpatch_update_expression ( & trigger -> expression , functionid , replace ) ) trigger -> flags |= ZBX_DBPATCH_TRIGGER_UPDATE_EXPRESSION ; if ( TRIGGER_RECOVERY_MODE_RECOVERY_EXPRESSION == trigger -> recovery_mode ) { if ( SUCCEED == dbpatch_update_expression ( & trigger -> recovery_expression , functionid , replace ) ) trigger -> flags |= ZBX_DBPATCH_TRIGGER_UPDATE_RECOVERY_EXPRESSION ; } }
Function: dbpatch_update_trigger                                           
                                                                            
 Purpose: replace {functionid} occurrences in trigger expression and        
          recovery expression with the specified replacement string
Function : dbpatch_update_trigger Purpose : replace { functionid } occurrences in trigger expression and recovery expression with the specified replacement string