diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2020-07-09 15:16:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 15:16:20 +0300 |
commit | 58de77c82f758e1c32f2775ea7f0e4503f9e6e80 (patch) | |
tree | 8b91fbcff0c0326ebef86e8976148232e28ed5a4 /database | |
parent | 33957ba3279d15b7ee9b0a66b3a40efc34960087 (diff) |
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
Diffstat (limited to 'database')
-rw-r--r-- | database/rrdset.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/database/rrdset.c b/database/rrdset.c index 71741cfca5..9fdfdf16b5 100644 --- a/database/rrdset.c +++ b/database/rrdset.c @@ -611,18 +611,6 @@ RRDSET *rrdset_create_custom( mark_rebuild |= META_CHART_UPDATED; } - if (unlikely(family && st->state->old_family && strcmp(st->state->old_family, family))) { - char *new_family = strdupz(family); - old_family_v = st->state->old_family; - st->state->old_family = strdupz(family); - json_fix_string(new_family); - old_family = st->family; - rrdfamily_free(host, st->rrdfamily); - st->family = new_family; - st->rrdfamily = rrdfamily_create(host, st->family); - mark_rebuild |= META_CHART_UPDATED; - } - if (unlikely(context && st->state->old_context && strcmp(st->state->old_context, context))) { char *new_context = strdupz(context); old_context_v = st->state->old_context; |