diff options
author | Vladimir Kobal <vlad@prokk.net> | 2019-12-16 15:22:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-16 15:22:06 +0200 |
commit | c4bb3d2642ab34e6aca912b22e55aed52f84e974 (patch) | |
tree | 9d0be765af37c74b988bb9b566ab18e88c56d5e4 /libnetdata | |
parent | e832ff755e025f52c5049878795f9aaefb36f2bb (diff) |
Fix backend config (#7538)
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/config/appconfig.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libnetdata/config/appconfig.c b/libnetdata/config/appconfig.c index 3774db5549..6ec5806fb4 100644 --- a/libnetdata/config/appconfig.c +++ b/libnetdata/config/appconfig.c @@ -525,8 +525,6 @@ int appconfig_load(struct config *root, char *filename, int overwrite_used) int line = 0; struct section *co = NULL; int is_exporter_config = 0; - int is_backend_config = 0; - int have_backend_config = 0; int _backends = 0; // number of backend sections we have char working_instance[CONFIG_MAX_NAME + 1]; char working_connector[CONFIG_MAX_NAME + 1]; @@ -591,18 +589,6 @@ int appconfig_load(struct config *root, char *filename, int overwrite_used) } } - is_backend_config = !(strcmp(s, CONFIG_SECTION_BACKEND)); - if (!have_backend_config) - have_backend_config = is_backend_config; - - if (is_backend_config) { - if (_backends) { - sprintf(buffer, CONFIG_SECTION_BACKEND "/%d", _backends); - s = buffer; - } - _backends++; - } - co = appconfig_section_find(root, s); if(!co) co = appconfig_section_create(root, s); |