diff options
author | Timotej S <6674623+underhood@users.noreply.github.com> | 2022-06-27 16:03:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-27 16:03:20 +0200 |
commit | cb13f0787d77c5e36f79ab18f492a52e0ec11123 (patch) | |
tree | 3f3f0269b34d895bb38d8c7bbc45cbd18022ac6c /database/rrdhost.c | |
parent | b8bfe953fbc8b35e13bd85975d4b23b90a6346b8 (diff) |
Removes Legacy JSON Cloud Protocol Support In Agent (#13111)
* removes old protocol support (cloud removed support already)
Diffstat (limited to 'database/rrdhost.c')
-rw-r--r-- | database/rrdhost.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/database/rrdhost.c b/database/rrdhost.c index 3b020b7be2..55f8989380 100644 --- a/database/rrdhost.c +++ b/database/rrdhost.c @@ -886,7 +886,7 @@ void rrdhost_free(RRDHOST *host) { rrdhost_wrlock(host); // lock this RRDHOST -#if defined(ENABLE_ACLK) && defined(ENABLE_NEW_CLOUD_PROTOCOL) +#ifdef ENABLE_ACLK struct aclk_database_worker_config *wc = host->dbsync_worker; if (wc && !netdata_exit) { struct aclk_database_cmd cmd; @@ -999,7 +999,7 @@ void rrdhost_free(RRDHOST *host) { freez(host->node_id); freez(host); -#if defined(ENABLE_ACLK) && defined(ENABLE_NEW_CLOUD_PROTOCOL) +#ifdef ENABLE_ACLK if (wc) wc->is_orphan = 0; #endif @@ -1330,7 +1330,7 @@ restart_after_removal: } continue; } -#if defined(ENABLE_ACLK) && defined(ENABLE_NEW_CLOUD_PROTOCOL) +#ifdef ENABLE_ACLK else queue_dimension_to_aclk(rd, rd->last_collected_time.tv_sec); #endif @@ -1363,7 +1363,7 @@ restart_after_removal: rrdset_free(st); goto restart_after_removal; } -#if defined(ENABLE_ACLK) && defined(ENABLE_NEW_CLOUD_PROTOCOL) +#ifdef ENABLE_ACLK else sql_check_chart_liveness(st); #endif @@ -1391,14 +1391,7 @@ void rrd_cleanup_obsolete_charts() { if (host->obsolete_charts_count) { rrdhost_wrlock(host); -#ifdef ENABLE_ACLK - host->deleted_charts_count = 0; -#endif rrdhost_cleanup_obsolete_charts(host); -#ifdef ENABLE_ACLK - if (host->deleted_charts_count) - aclk_update_chart(host, "dummy-chart", 0); -#endif rrdhost_unlock(host); } |