Fix lock order reversal. (#9888)

This commit is contained in:
Markos Fountoulakis 2020-09-07 12:22:29 +03:00 committed by GitHub
parent 3e1d7ef2f2
commit b5a3fadf68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}