zabbix-agent2/src/libs/zbxdbcache/dbconfig.c
/******************************************************************************
 *                                                                            *
 * Function: DCsync_action_ops                                                *
 *                                                                            *
 * Purpose: Updates action operation class flags in configuration cache       *
 *                                                                            *
 * Parameters: sync - [IN] the db synchronization data                        *
 *                                                                            *
 * Comments: The result contains the following fields:                        *
 *           0 - actionid                                                     *
 *           1 - action operation class flags                                 *
 *                                                                            *
 ******************************************************************************/
DCsync_action_ops

Purpose: Updates action operation class flags in configuration cache

Parameters: sync - [IN] the db synchronization data

Comments: The result contains the following fields:
0 - actionid
1 - action operation class flags
DCsync_action_ops Purpose : Updates action operation class flags in configuration cache Parameters : sync - [ IN ] the db synchronization data Comments : The result contains the following fields : 0 - actionid 1 - action operation class flags
static void	DCsync_action_ops(zbx_dbsync_t *sync)
{
	char		**row;
	zbx_uint64_t	rowid;
	unsigned char	tag;
	zbx_uint64_t	actionid;
	zbx_dc_action_t	*action;
	zabbix_log(LOG_LEVEL_DEBUG, "In %s()", __func__);
	while (SUCCEED == zbx_dbsync_next(sync, &rowid, &row, &tag))
	{
		ZBX_STR2UINT64(actionid, row[0]);
		if (NULL == (action = (zbx_dc_action_t *)zbx_hashset_search(&config->actions, &actionid)))
			continue;
		action->opflags = atoi(row[1]);
	}
	zabbix_log(LOG_LEVEL_DEBUG, "End of %s()", __func__);
}
static void DCsync_action_ops ( zbx_dbsync_t * sync ) { char * * row ; zbx_uint64_t rowid ; unsigned char tag ; zbx_uint64_t actionid ; zbx_dc_action_t * action ; zabbix_log ( LOG_LEVEL_DEBUG , " " , __func__ ) ; while ( SUCCEED == zbx_dbsync_next ( sync , & rowid , & row , & tag ) ) { ZBX_STR2UINT64 ( actionid , row [ 0 ] ) ; if ( NULL == ( action = ( zbx_dc_action_t * ) zbx_hashset_search ( & config -> actions , & actionid ) ) ) continue ; action -> opflags = atoi ( row [ 1 ] ) ; } zabbix_log ( LOG_LEVEL_DEBUG , " " , __func__ ) ; }
Function: DCsync_action_ops                                                
                                                                            
 Purpose: Updates action operation class flags in configuration cache       
                                                                            
 Parameters: sync - [IN] the db synchronization data                        
                                                                            
 Comments: The result contains the following fields:                        
           0 - actionid                                                     
           1 - action operation class flags
Function : DCsync_action_ops Purpose : Updates action operation class flags in configuration cache Parameters : sync - [ IN ] the db synchronization data Comments : The result contains the following fields : 0 - actionid 1 - action operation class flags