@cryptotaxi247 / netdata-1 / commits / 6c5418016

Fix streaming crash when child reconnects and is archived on the parent (#13754)

Remove unused RRDIM_FLAG_ACLK Create dictionaries that may have been deleted

Stelios Fragkakis committed Oct 3, 2022 at 11:43 UTC 6c5418016b419ef3ae96b8af81835b2f81a93cf4
2 files changed +4 -1
daemon/service.c
+1 -1
@@ -23,7 +23,7 @@
23 static void svc_rrddim_obsolete_to_archive(RRDDIM *rd) {
24 RRDSET *st = rd->rrdset;
25
26 - if(rrddim_flag_check(rd, RRDDIM_FLAG_ARCHIVED | RRDDIM_FLAG_ACLK) || !rrddim_flag_check(rd, RRDDIM_FLAG_OBSOLETE))
26 + if(rrddim_flag_check(rd, RRDDIM_FLAG_ARCHIVED) || !rrddim_flag_check(rd, RRDDIM_FLAG_OBSOLETE))
27 return;
28
29 worker_is_busy(WORKER_JOB_ARCHIVE_DIMENSION);
database/rrdhost.c
+3
@@ -632,6 +632,9 @@ void rrdhost_update(RRDHOST *host
632 if(!host->rrdlabels)
633 host->rrdlabels = rrdlabels_create();
634
635 + if (!host->rrdset_root_index)
636 + rrdset_index_init(host);
637 +
638 rrdhost_initialize_rrdpush(host,
639 rrdpush_enabled,
640 rrdpush_destination,