summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkos Fountoulakis <44345837+mfundul@users.noreply.github.com>2020-11-12 11:18:21 +0200
committerGitHub <noreply@github.com>2020-11-12 11:18:21 +0200
commit17ba3873b667a0696a1ddad1f2b1fe9b0a86cc5e (patch)
tree9633c2c67063f447a8f39e1acdc2b944a7ee92f8
parent05153ab1b499b3d3380e19b0c5002b553a6a1437 (diff)
Disable chart obsoletion code for archived chart creation. (#10231)
-rw-r--r--database/rrdset.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/database/rrdset.c b/database/rrdset.c
index 585eb7ff0e..c26516e7e3 100644
--- a/database/rrdset.c
+++ b/database/rrdset.c
@@ -951,7 +951,8 @@ RRDSET *rrdset_create_custom(
}
#endif
- rrdhost_cleanup_obsolete_charts(host);
+ if (!is_archived)
+ rrdhost_cleanup_obsolete_charts(host);
rrdhost_unlock(host);
#ifdef ENABLE_ACLK