summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Kobal <vlad@prokk.net>2020-12-14 18:35:43 +0200
committerGitHub <noreply@github.com>2020-12-14 18:35:43 +0200
commit4af937a67c200d245ef6c3c3643ee09e7ded7064 (patch)
tree34bd30e62fcd57cc419ea213a0bc0ab79bbb7d87
parentd600ae20c0456e23277850ecd5ad4542e465b00b (diff)
Fix a lock check (#10385)
-rw-r--r--exporting/opentsdb/opentsdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exporting/opentsdb/opentsdb.c b/exporting/opentsdb/opentsdb.c
index 9f65926641..d7b843dff9 100644
--- a/exporting/opentsdb/opentsdb.c
+++ b/exporting/opentsdb/opentsdb.c
@@ -152,7 +152,7 @@ int format_host_labels_opentsdb_telnet(struct instance *instance, RRDHOST *host)
if (unlikely(!sending_labels_configured(instance)))
return 0;
- rrdhost_check_rdlock(localhost);
+ rrdhost_check_rdlock(host);
netdata_rwlock_rdlock(&host->labels.labels_rwlock);
for (struct label *label = host->labels.head; label; label = label->next) {
if (!should_send_label(instance, label))