Skip to content

Commit

Permalink
Fix lock order reversal. (#9888)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfundul committed Sep 7, 2020
1 parent 3e1d7ef commit b5a3fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion streaming/receiver.c
Expand Up @@ -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();
}

Expand Down

0 comments on commit b5a3fad

Please sign in to comment.