diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2022-02-22 18:23:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 18:23:08 +0200 |
commit | a330a27a62a4fc945044216516367962ce275952 (patch) | |
tree | a73b6794cd1f85598d459859079fc58df5da7314 /database/rrd.c | |
parent | b4810f88a681517972c7158c98f7def53d0a9b4d (diff) |
Remove chart specific configuration from netdata.conf except enabled (#12209)
Diffstat (limited to 'database/rrd.c')
-rw-r--r-- | database/rrd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/database/rrd.c b/database/rrd.c index dcab65189e..321d35615e 100644 --- a/database/rrd.c +++ b/database/rrd.c @@ -140,6 +140,7 @@ const char *rrdset_type_name(RRDSET_TYPE chart_type) { // RRD - cache directory char *rrdset_cache_dir(RRDHOST *host, const char *id, const char *config_section) { + UNUSED(config_section); char *ret = NULL; char b[FILENAME_MAX + 1]; @@ -147,7 +148,7 @@ char *rrdset_cache_dir(RRDHOST *host, const char *id, const char *config_section rrdset_strncpyz_name(b, id, FILENAME_MAX); snprintfz(n, FILENAME_MAX, "%s/%s", host->cache_dir, b); - ret = config_get(config_section, "cache directory", n); + ret = strdupz(n); if(host->rrd_memory_mode == RRD_MEMORY_MODE_MAP || host->rrd_memory_mode == RRD_MEMORY_MODE_SAVE) { int r = mkdir(ret, 0775); |