Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislavs Sokurenko <vladislavs.sokurenko@zabbix.com>2022-01-04 15:00:32 +0300
committerVladislavs Sokurenko <vladislavs.sokurenko@zabbix.com>2022-01-04 15:27:42 +0300
commit7c41ca4a80259bb6fab212c798fc7978ae5e53dc (patch)
tree5a351897ee357f15ddf4724c3ad76821b7e63622 /include/dbcache.h
parente158a62678e213ea187cac23f641b1dbaca9514f (diff)
...G...PS. [ZBX-20236] improved memory consumption in Zabbix proxy trappers by moving configuration sync between database and cache to configuration syncer
Diffstat (limited to 'include/dbcache.h')
-rw-r--r--include/dbcache.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/dbcache.h b/include/dbcache.h
index 075d82e52a9..91a8afbf859 100644
--- a/include/dbcache.h
+++ b/include/dbcache.h
@@ -52,6 +52,10 @@
#define ZBX_SNMPTRAP_LOGGING_ENABLED 1
+#define ZBX_IPC_SERVICE_CONFIG "config"
+#define ZBX_IPC_CONFIG_RELOAD_REQUEST 1
+#define ZBX_IPC_CONFIG_RELOAD_RESPONSE 2
+
extern int CONFIG_TIMEOUT;
extern zbx_uint64_t CONFIG_CONF_CACHE_SIZE;
@@ -666,7 +670,8 @@ zbx_uint64_t DCget_nextid(const char *table_name, int num);
#define ZBX_ITEM_GET_PROCESS (ZBX_ITEM_GET_MAINTENANCE|ZBX_ITEM_GET_MISC|ZBX_ITEM_GET_LOGTIMEFMT)
-void DCsync_configuration(unsigned char mode, const struct zbx_json_parse *jp_kvs_paths);
+void DCsync_configuration(unsigned char mode);
+void DCsync_kvs_paths(const struct zbx_json_parse *jp_kvs_paths);
int init_configuration_cache(char **error);
void free_configuration_cache(void);