diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2020-12-14 17:27:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 17:27:55 +0300 |
commit | 0f8175dd3060691394e263cdab01c8f940b1b5d3 (patch) | |
tree | 4b14cd6b7e6ba7797eeec4c74b4c4c35cdad4494 /daemon | |
parent | 7bfa8c8eba72a109d940b1fa5c7acaed9cd7a52c (diff) |
Kubernetes labels (#10107)
Co-authored-by: Markos Fountoulakis <markos.fountoulakis.senior@gmail.com>
Co-authored-by: Vladimir Kobal <vlad@prokk.net>
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/commands.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/commands.c b/daemon/commands.c index d6364e89a8..eac392e33a 100644 --- a/daemon/commands.c +++ b/daemon/commands.c @@ -216,13 +216,13 @@ 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; + netdata_rwlock_rdlock(&localhost->labels.labels_rwlock); + struct label *l = localhost->labels.head; while (l != NULL) { buffer_sprintf(wb,"Label [source id=%s]: \"%s\" -> \"%s\"\n", translate_label_source(l->label_source), l->key, l->value); l = l->next; } - netdata_rwlock_unlock(&localhost->labels_rwlock); + netdata_rwlock_unlock(&localhost->labels.labels_rwlock); rrdhost_unlock(localhost); (*message)=strdupz(buffer_tostring(wb)); |