summaryrefslogtreecommitdiffstats
path: root/exporting/graphite/graphite.c
diff options
context:
space:
mode:
Diffstat (limited to 'exporting/graphite/graphite.c')
-rw-r--r--exporting/graphite/graphite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/exporting/graphite/graphite.c b/exporting/graphite/graphite.c
index dac1d7682e..9c09631f19 100644
--- a/exporting/graphite/graphite.c
+++ b/exporting/graphite/graphite.c
@@ -100,8 +100,8 @@ int format_host_labels_graphite_plaintext(struct instance *instance, RRDHOST *ho
return 0;
rrdhost_check_rdlock(host);
- netdata_rwlock_rdlock(&host->labels_rwlock);
- for (struct label *label = host->labels; label; label = label->next) {
+ netdata_rwlock_rdlock(&host->labels.labels_rwlock);
+ for (struct label *label = host->labels.head; label; label = label->next) {
if (!should_send_label(instance, label))
continue;
@@ -113,7 +113,7 @@ int format_host_labels_graphite_plaintext(struct instance *instance, RRDHOST *ho
buffer_sprintf(instance->labels, "%s=%s", label->key, value);
}
}
- netdata_rwlock_unlock(&host->labels_rwlock);
+ netdata_rwlock_unlock(&host->labels.labels_rwlock);
return 0;
}