Remove the ability to update the chart family on the fly. (#9509)
Fixed an issue with random crashes when updating a chart's metadata on the fly
Stelios Fragkakis committed
Jul 9, 2020 at 15:16 UTC
58de77c82f758e1c32f2775ea7f0e4503f9e6e80
1 file changed
-12
database/rrdset.c
-12
@@ -611,18 +611,6 @@ RRDSET *rrdset_create_custom(
611
mark_rebuild |= META_CHART_UPDATED;
612
}
613
614
- if (unlikely(family && st->state->old_family && strcmp(st->state->old_family, family))) {
615
- char *new_family = strdupz(family);
616
- old_family_v = st->state->old_family;
617
- st->state->old_family = strdupz(family);
618
- json_fix_string(new_family);
619
- old_family = st->family;
620
- rrdfamily_free(host, st->rrdfamily);
621
- st->family = new_family;
622
- st->rrdfamily = rrdfamily_create(host, st->family);
623
- mark_rebuild |= META_CHART_UPDATED;
624
- }
625
-
614
if (unlikely(context && st->state->old_context && strcmp(st->state->old_context, context))) {
615
char *new_context = strdupz(context);
616
old_context_v = st->state->old_context;