diff options
author | Vladimir Kobal <vlad@prokk.net> | 2019-03-11 11:36:05 +0200 |
---|---|---|
committer | Chris Akritidis <43294513+cakrit@users.noreply.github.com> | 2019-03-11 10:36:05 +0100 |
commit | 30e49cdc1532ae506709db4f82d45313b7c81506 (patch) | |
tree | 0f3a6062879fbdf997d6534eb46f9b12c5c1b20d /database | |
parent | 992a5afb71be9af6e73c88dad7f6e8faf281bf98 (diff) |
Fix nonobsolete dimension deletion (#5563)
Diffstat (limited to 'database')
-rw-r--r-- | database/rrdset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/database/rrdset.c b/database/rrdset.c index fb22b38de7..e04ffadcc9 100644 --- a/database/rrdset.c +++ b/database/rrdset.c @@ -1621,7 +1621,7 @@ void rrdset_done(RRDSET *st) { rrdset_wrlock(st); for( rd = st->dimensions, last = NULL ; likely(rd) ; ) { - if(unlikely(rd->last_collected_time.tv_sec + rrdset_free_obsolete_time < now)) { + if(unlikely(rrddim_flag_check(rd, RRDDIM_FLAG_OBSOLETE) && (rd->last_collected_time.tv_sec + rrdset_free_obsolete_time < now))) { info("Removing obsolete dimension '%s' (%s) of '%s' (%s).", rd->name, rd->id, st->name, st->id); if(likely(rd->rrd_memory_mode == RRD_MEMORY_MODE_SAVE || rd->rrd_memory_mode == RRD_MEMORY_MODE_MAP)) { |