Update chart's metadata in database when it already exists during creation (#10728)
Stelios Fragkakis committed
Mar 9, 2021 at 12:45 UTC
2e6de7e835485b719a95a38904e0903bbd6f7bb1
1 file changed
+2
database/rrdset.c
+2
@@ -930,6 +930,8 @@ RRDSET *rrdset_create_custom(
930
st->chart_uuid = find_chart_uuid(host, type, id, name);
931
if (unlikely(!st->chart_uuid))
932
st->chart_uuid = create_chart_uuid(st, id, name);
933
+ else
934
+ update_chart_metadata(st->chart_uuid, st, id, name);
935
936
store_active_chart(st->chart_uuid);
937
}