diff options
author | Vladimir Kobal <vlad@prokk.net> | 2020-02-01 00:05:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-01 00:05:45 +0200 |
commit | 177af26ea878e673166ebbeb4518539f624a81f0 (patch) | |
tree | 9f874527a1e6e25c85a05d62b3623e6d8b5f79fd /daemon | |
parent | 43bc627b1dc2e667ad2e6e8a0c2ff1e0b512dcdf (diff) |
Parse host tags (#7702)
* Fix memory leaks
* Check for configuration options
* Parse simple tags
* Parse JSON tags
* Remove an unnecessary check
* Parse a JSON object
* Parse a JSON array
* Update the documentation
* Fix host locks
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/commands.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/commands.c b/daemon/commands.c index 8f793b80f8..452a746a4f 100644 --- a/daemon/commands.c +++ b/daemon/commands.c @@ -203,6 +203,7 @@ static cmd_status_t cmd_reload_labels_execute(char *args, char **message) BUFFER *wb = buffer_create(10); + rrdhost_rdlock(localhost); netdata_rwlock_rdlock(&localhost->labels_rwlock); struct label *l=localhost->labels; while (l != NULL) { @@ -210,6 +211,7 @@ static cmd_status_t cmd_reload_labels_execute(char *args, char **message) l = l->next; } netdata_rwlock_unlock(&localhost->labels_rwlock); + rrdhost_unlock(localhost); (*message)=strdupz(buffer_tostring(wb)); buffer_free(wb); |