summaryrefslogtreecommitdiffstats
path: root/database/rrdset.c
diff options
context:
space:
mode:
authorAndrew Moss <1043609+amoss@users.noreply.github.com>2020-03-31 21:19:34 +0200
committerGitHub <noreply@github.com>2020-03-31 21:19:34 +0200
commit8fe7485a600f60be9ac20af923a61d516cb0335e (patch)
tree875658393d501b764eb8694d44488dbe9b64cf29 /database/rrdset.c
parentef2bd3956b2797de31008ddffab671b9675f070d (diff)
Switching over to soft feature flag (#8545)
Preparing for the cloud release. This changes how we handle the feature flag so that it no longer requires installer switches and can be set from the config file. This still requires internal access to use and is not ready for public access yet.
Diffstat (limited to 'database/rrdset.c')
-rw-r--r--database/rrdset.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/database/rrdset.c b/database/rrdset.c
index ced1021ac7..d0554f0f30 100644
--- a/database/rrdset.c
+++ b/database/rrdset.c
@@ -425,8 +425,10 @@ void rrdset_delete(RRDSET *st) {
recursively_delete_dir(st->cache_dir, "left-over chart");
#ifdef ENABLE_ACLK
- aclk_del_collector(st->rrdhost->hostname, st->plugin_name, st->module_name);
- aclk_update_chart(st->rrdhost, st->id, ACLK_CMD_CHARTDEL);
+ if (netdata_cloud_setting) {
+ aclk_del_collector(st->rrdhost->hostname, st->plugin_name, st->module_name);
+ aclk_update_chart(st->rrdhost, st->id, ACLK_CMD_CHARTDEL);
+ }
#endif
}
@@ -768,8 +770,10 @@ RRDSET *rrdset_create_custom(
rrdhost_unlock(host);
#ifdef ENABLE_ACLK
- aclk_add_collector(host->hostname, plugin, module);
- aclk_update_chart(host, st->id, ACLK_CMD_CHART);
+ if (netdata_cloud_setting) {
+ aclk_add_collector(host->hostname, plugin, module);
+ aclk_update_chart(host, st->id, ACLK_CMD_CHART);
+ }
#endif
return(st);
}