summaryrefslogtreecommitdiffstats
path: root/database/rrddim.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-02-21 19:34:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-02-21 19:34:01 +0000
commit66564c2324abc58b24327b763e1113ff781156a2 (patch)
tree2480212cd47149a3fda5225b57689d0126546e23 /database/rrddim.c
parentAdding upstream version 1.12.0. (diff)
downloadnetdata-66564c2324abc58b24327b763e1113ff781156a2.tar.xz
netdata-66564c2324abc58b24327b763e1113ff781156a2.zip
Adding upstream version 1.12.1.upstream/1.12.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--database/rrddim.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/database/rrddim.c b/database/rrddim.c
index e98f702fe..0a5549b98 100644
--- a/database/rrddim.c
+++ b/database/rrddim.c
@@ -368,6 +368,18 @@ int rrddim_unhide(RRDSET *st, const char *id) {
return 0;
}
+inline void rrddim_is_obsolete(RRDSET *st, RRDDIM *rd) {
+ debug(D_RRD_CALLS, "rrddim_is_obsolete() for chart %s, dimension %s", st->name, rd->name);
+
+ rrddim_flag_set(rd, RRDDIM_FLAG_OBSOLETE);
+ rrdset_flag_set(st, RRDSET_FLAG_OBSOLETE_DIMENSIONS);
+}
+
+inline void rrddim_isnot_obsolete(RRDSET *st, RRDDIM *rd) {
+ debug(D_RRD_CALLS, "rrddim_isnot_obsolete() for chart %s, dimension %s", st->name, rd->name);
+
+ rrddim_flag_clear(rd, RRDDIM_FLAG_OBSOLETE);
+}
// ----------------------------------------------------------------------------
// RRDDIM - collect values for a dimension