|
@@ -848,6 +848,10 @@ void rrdhost_free(RRDHOST *host) {
|
|
|
|
|
|
rrd_check_wrlock(); // make sure the RRDs are write locked
|
|
|
|
|
|
+ rrdhost_wrlock(host);
|
|
|
+ ml_delete_host(host);
|
|
|
+ rrdhost_unlock(host);
|
|
|
+
|
|
|
// ------------------------------------------------------------------------
|
|
|
// clean up streaming
|
|
|
rrdpush_sender_thread_stop(host); // stop a possibly running thread
|
|
@@ -937,8 +941,6 @@ void rrdhost_free(RRDHOST *host) {
|
|
|
rrdeng_exit(host->rrdeng_ctx);
|
|
|
#endif
|
|
|
|
|
|
- ml_delete_host(host);
|
|
|
-
|
|
|
// ------------------------------------------------------------------------
|
|
|
// remove it from the indexes
|
|
|
|