summaryrefslogtreecommitdiffstats
path: root/database/rrdset.c
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2021-03-09 12:45:16 +0200
committerGitHub <noreply@github.com>2021-03-09 12:45:16 +0200
commit2e6de7e835485b719a95a38904e0903bbd6f7bb1 (patch)
tree72abc1b4aa7a8f653ac4a6bb360ddf0f2cbf3595 /database/rrdset.c
parentfddcb83ee9cd94d61be47e774e006be433a85aeb (diff)
Update chart's metadata in database when it already exists during creation (#10728)
Diffstat (limited to 'database/rrdset.c')
-rw-r--r--database/rrdset.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/database/rrdset.c b/database/rrdset.c
index 24aa58e624..e9c6eee5cf 100644
--- a/database/rrdset.c
+++ b/database/rrdset.c
@@ -930,6 +930,8 @@ RRDSET *rrdset_create_custom(
st->chart_uuid = find_chart_uuid(host, type, id, name);
if (unlikely(!st->chart_uuid))
st->chart_uuid = create_chart_uuid(st, id, name);
+ else
+ update_chart_metadata(st->chart_uuid, st, id, name);
store_active_chart(st->chart_uuid);
}