summaryrefslogtreecommitdiffstats
path: root/streaming
diff options
context:
space:
mode:
authorMarkos Fountoulakis <44345837+mfundul@users.noreply.github.com>2020-09-07 12:22:29 +0300
committerGitHub <noreply@github.com>2020-09-07 12:22:29 +0300
commitb5a3fadf68e754e85f5a9fda996839d2a2f90b0f (patch)
tree283a1a8ab19c379a8d44adcb85f1bf570fefda28 /streaming
parent3e1d7ef2f2dcea542840b7b5acb3b4b8a1470d30 (diff)
Fix lock order reversal. (#9888)
Diffstat (limited to 'streaming')
-rw-r--r--streaming/receiver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming/receiver.c b/streaming/receiver.c
index 8c0a2019b6..98fe87f887 100644
--- a/streaming/receiver.c
+++ b/streaming/receiver.c
@@ -460,11 +460,11 @@ static int rrdpush_receive(struct receiver_state *rpt)
if(health_enabled == CONFIG_BOOLEAN_AUTO)
rpt->host->health_enabled = 0;
}
+ rrdhost_unlock(rpt->host);
if (rpt->host->receiver == rpt) {
rrdpush_sender_thread_stop(rpt->host);
}
netdata_mutex_unlock(&rpt->host->receiver_lock);
- rrdhost_unlock(rpt->host);
rrd_unlock();
}