diff options
author | Timotej S <6674623+underhood@users.noreply.github.com> | 2021-09-29 17:53:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-29 17:53:53 +0200 |
commit | dad48421a6b3482f9cb71973885cf1160408855f (patch) | |
tree | cc66313a014c333e8baa09d3e34f46c98e4ce96b /database/sqlite/sqlite_aclk_alert.c | |
parent | 8d0a2384412882cf9b641f17cf4e0602db4cce4d (diff) |
Makes New Cloud architecture optional for ACLK-NG (#11587)
ACLK-NG supports both new and old cloud protocol. Protobuf and C++ compiler are required only for new cloud protocol.
There is no reason to skip building whole ACLK-NG when protobuf is missing.
Diffstat (limited to 'database/sqlite/sqlite_aclk_alert.c')
-rw-r--r-- | database/sqlite/sqlite_aclk_alert.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/database/sqlite/sqlite_aclk_alert.c b/database/sqlite/sqlite_aclk_alert.c index a84db5986d..ce957c7823 100644 --- a/database/sqlite/sqlite_aclk_alert.c +++ b/database/sqlite/sqlite_aclk_alert.c @@ -102,7 +102,7 @@ int rrdcalc_status_to_proto_enum(RRDCALC_STATUS status) void aclk_push_alert_event(struct aclk_database_worker_config *wc, struct aclk_database_cmd cmd) { -#ifndef ACLK_NG +#ifndef ENABLE_NEW_CLOUD_PROTOCOL UNUSED(wc); UNUSED(cmd); #else @@ -259,7 +259,7 @@ void aclk_send_alarm_health_log(char *node_id) void aclk_push_alarm_health_log(struct aclk_database_worker_config *wc, struct aclk_database_cmd cmd) { UNUSED(cmd); -#ifndef ACLK_NG +#ifndef ENABLE_NEW_CLOUD_PROTOCOL UNUSED(wc); #else int rc; @@ -362,7 +362,7 @@ void aclk_send_alarm_configuration(char *config_hash) int aclk_push_alert_config_event(struct aclk_database_worker_config *wc, struct aclk_database_cmd cmd) { UNUSED(wc); -#ifndef ACLK_NG +#ifndef ENABLE_NEW_CLOUD_PROTOCOL UNUSED(cmd); #else int rc = 0; @@ -482,7 +482,7 @@ int aclk_push_alert_config_event(struct aclk_database_worker_config *wc, struct // Start streaming alerts void aclk_start_alert_streaming(char *node_id, uint64_t batch_id, uint64_t start_seq_id) { -#ifdef ACLK_NG +#ifdef ENABLE_NEW_CLOUD_PROTOCOL if (unlikely(!node_id)) return; |