@cryptotaxi247 / netdata-1 / commits / 4af937a67

Fix a lock check (#10385)

Vladimir Kobal committed Dec 14, 2020 at 18:35 UTC 4af937a67c200d245ef6c3c3643ee09e7ded7064
1 file changed +1 -1
exporting/opentsdb/opentsdb.c
+1 -1
@@ -152,7 +152,7 @@ int format_host_labels_opentsdb_telnet(struct instance *instance, RRDHOST *host)
152 if (unlikely(!sending_labels_configured(instance)))
153 return 0;
154
155 - rrdhost_check_rdlock(localhost);
155 + rrdhost_check_rdlock(host);
156 netdata_rwlock_rdlock(&host->labels.labels_rwlock);
157 for (struct label *label = host->labels.head; label; label = label->next) {
158 if (!should_send_label(instance, label))