zabbix-agent2/src/libs/zbxdbcache/dbsync.c
/******************************************************************************
 *                                                                            *
 * Function: dbsync_compare_corr_operation                                    *
 *                                                                            *
 * Purpose: compares correlation operation tables dbrow with cached             *
 *          configuration data                                                *
 *                                                                            *
 * Parameter: corr_operation - [IN] the cached correlation operation          *
 *            dbrow          - [IN] the database row                          *
 *                                                                            *
 * Return value: SUCCEED - the row matches configuration data                 *
 *               FAIL    - otherwise                                          *
 *                                                                            *
 ******************************************************************************/
dbsync_compare_corr_operation

Purpose: compares correlation operation tables dbrow with cached
configuration data

Parameter: corr_operation - [IN] the cached correlation operation
dbrow          - [IN] the database row

Return value: SUCCEED - the row matches configuration data
FAIL    - otherwise
dbsync_compare_corr_operation Purpose : compares correlation operation tables dbrow with cached configuration data Parameter : corr_operation - [ IN ] the cached correlation operation dbrow - [ IN ] the database row Return value : SUCCEED - the row matches configuration data FAIL - otherwise
static int	dbsync_compare_corr_operation(const zbx_dc_corr_operation_t *corr_operation, const DB_ROW dbrow)
{
	if (FAIL == dbsync_compare_uint64(dbrow[1], corr_operation->correlationid))
		return FAIL;
	if (FAIL == dbsync_compare_uchar(dbrow[2], corr_operation->type))
		return FAIL;
	return SUCCEED;
}
static int dbsync_compare_corr_operation ( const zbx_dc_corr_operation_t * corr_operation , const DB_ROW dbrow ) { if ( FAIL == dbsync_compare_uint64 ( dbrow [ 1 ] , corr_operation -> correlationid ) ) return FAIL ; if ( FAIL == dbsync_compare_uchar ( dbrow [ 2 ] , corr_operation -> type ) ) return FAIL ; return SUCCEED ; }
Function: dbsync_compare_corr_operation                                    
                                                                            
 Purpose: compares correlation operation tables dbrow with cached             
          configuration data                                                
                                                                            
 Parameter: corr_operation - [IN] the cached correlation operation          
            dbrow          - [IN] the database row                          
                                                                            
 Return value: SUCCEED - the row matches configuration data                 
               FAIL    - otherwise
Function : dbsync_compare_corr_operation Purpose : compares correlation operation tables dbrow with cached configuration data Parameter : corr_operation - [ IN ] the cached correlation operation dbrow - [ IN ] the database row Return value : SUCCEED - the row matches configuration data FAIL - otherwise