@cryptotaxi247 / netdata-1 / commits / b5a3fadf6

Fix lock order reversal. (#9888)

Markos Fountoulakis committed Sep 7, 2020 at 12:22 UTC b5a3fadf68e754e85f5a9fda996839d2a2f90b0f
1 file changed +1 -1
streaming/receiver.c
+1 -1
@@ -460,11 +460,11 @@ static int rrdpush_receive(struct receiver_state *rpt)
460 if(health_enabled == CONFIG_BOOLEAN_AUTO)
461 rpt->host->health_enabled = 0;
462 }
463 + rrdhost_unlock(rpt->host);
464 if (rpt->host->receiver == rpt) {
465 rrdpush_sender_thread_stop(rpt->host);
466 }
467 netdata_mutex_unlock(&rpt->host->receiver_lock);
467 - rrdhost_unlock(rpt->host);
468 rrd_unlock();
469 }
470