@cryptotaxi247 / netdata-1 / commits / 4edec08f4

fix_lock: Add the missing lock (#8780)

This PR adds the missing lock and fix a master shutdown during streaming.

thiagoftsm committed Apr 20, 2020 at 19:16 UTC 4edec08f4e21f0f6a719241406b3df09aa55b1ad
1 file changed +2
collectors/plugins.d/plugins_d.c
+2
@@ -655,7 +655,9 @@ inline size_t pluginsd_process(RRDHOST *host, struct plugind *cd, FILE *fp, int
655 if(!host->labels) {
656 host->labels = new_labels;
657 } else {
658 + rrdhost_rdlock(host);
659 replace_label_list(host, new_labels);
660 + rrdhost_unlock(host);
661 }
662
663 new_labels = NULL;