"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/libs/zbxdbcache/dbsync.c" between
zabbix-5.4.0.tar.gz and zabbix-5.4.1.tar.gz

About: ZABBIX is an enterprise-class distributed monitoring solution for servers and applications.

dbsync.c  (zabbix-5.4.0):dbsync.c  (zabbix-5.4.1)
skipping to change at line 3249 skipping to change at line 3249
&rowid))) &rowid)))
{ {
tag = ZBX_DBSYNC_ROW_ADD; tag = ZBX_DBSYNC_ROW_ADD;
} }
else if (FAIL == dbsync_compare_item_tag(item_tag, dbrow)) else if (FAIL == dbsync_compare_item_tag(item_tag, dbrow))
tag = ZBX_DBSYNC_ROW_UPDATE; tag = ZBX_DBSYNC_ROW_UPDATE;
if (ZBX_DBSYNC_ROW_NONE != tag) if (ZBX_DBSYNC_ROW_NONE != tag)
dbsync_add_row(sync, rowid, tag, dbrow); dbsync_add_row(sync, rowid, tag, dbrow);
} }
DBfree_result(result);
zbx_hashset_iter_reset(&dbsync_env.cache->item_tags, &iter); zbx_hashset_iter_reset(&dbsync_env.cache->item_tags, &iter);
while (NULL != (item_tag = (zbx_dc_item_tag_t *)zbx_hashset_iter_next(&it er))) while (NULL != (item_tag = (zbx_dc_item_tag_t *)zbx_hashset_iter_next(&it er)))
{ {
if (NULL == zbx_hashset_search(&ids, &item_tag->itemtagid)) if (NULL == zbx_hashset_search(&ids, &item_tag->itemtagid))
dbsync_add_row(sync, item_tag->itemtagid, ZBX_DBSYNC_ROW_ REMOVE, NULL); dbsync_add_row(sync, item_tag->itemtagid, ZBX_DBSYNC_ROW_ REMOVE, NULL);
} }
zbx_hashset_destroy(&ids); zbx_hashset_destroy(&ids);
DBfree_result(result);
return SUCCEED; return SUCCEED;
} }
/****************************************************************************** /******************************************************************************
* * * *
* Function: dbsync_compare_host_tag * * Function: dbsync_compare_host_tag *
* * * *
* Purpose: compares host tags table row with cached configuration data * * Purpose: compares host tags table row with cached configuration data *
* * * *
 End of changes. 2 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)