Source
xxxxxxxxxx
static void preproc_item_value_extract_data(zbx_preproc_item_value_t *value, zbx_variant_t *var, zbx_timespec_t *ts,
/*
** Zabbix
** Copyright (C) 2001-2023 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
extern unsigned char program_type;
/******************************************************************************
* *
* Purpose: synchronize preprocessing manager with configuration cache data *
* *
* Parameters: manager - [IN] the manager to be synchronized *
* *
******************************************************************************/
static void preprocessor_sync_configuration(zbx_pp_manager_t *manager)
{
zbx_uint64_t old_revision, revision;
zabbix_log(LOG_LEVEL_DEBUG, "In %s()", __func__);
old_revision = revision = zbx_pp_manager_get_revision(manager);
DCconfig_get_preprocessable_items(zbx_pp_manager_items(manager), &revision);
zbx_pp_manager_set_revision(manager, revision);
if (SUCCEED == ZBX_CHECK_LOG_LEVEL(LOG_LEVEL_TRACE) && revision != old_revision)
zbx_pp_manager_dump_items(manager);
zabbix_log(LOG_LEVEL_DEBUG, "End of %s() item config size:%d revision:" ZBX_FS_UI64 "->" ZBX_FS_UI64, __func__,
zbx_pp_manager_items(manager)->num_data, old_revision, revision);
}