delete the host from the index and it is removed
Costa Tsaousis (ktsaou) committed
Feb 18, 2017 at 23:59 UTC
dce9396afe47940d90db781f1882f6f44ccbc200
1 file changed
+3
src/rrdhost.c
+3
@@ -222,6 +222,9 @@ void rrdhost_free(RRDHOST *host) {
222
}
223
host->rrdset_root = NULL;
224
225
+ if(rrdhost_index_del(host) != host)
226
+ error("RRDHOST '%s' removed from index, deleted the wrong entry.", host->hostname);
227
+
228
freez(host->cache_dir);
229
freez(host->varlib_dir);
230
freez(host->health_default_exec);