summaryrefslogtreecommitdiffstats
path: root/database
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-09-18 15:47:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-09-18 15:47:41 +0000
commiteb53d1fe877874a69ba36de0c1be29405cb12a6e (patch)
tree81f61cc1d0517769b6acff80865a03ca564dfc8a /database
parentReleasing debian version 1.42.3-1. (diff)
downloadnetdata-eb53d1fe877874a69ba36de0c1be29405cb12a6e.tar.xz
netdata-eb53d1fe877874a69ba36de0c1be29405cb12a6e.zip
Merging upstream version 1.42.4.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'database')
-rw-r--r--database/rrd.h2
-rw-r--r--database/rrdcalc.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/database/rrd.h b/database/rrd.h
index d64f5904..11f3aa98 100644
--- a/database/rrd.h
+++ b/database/rrd.h
@@ -769,6 +769,8 @@ typedef enum __attribute__ ((__packed__)) rrdset_flags {
RRDSET_FLAG_UPSTREAM_SEND_VARIABLES = (1 << 26), // a custom variable has been updated and needs to be exposed to parent
RRDSET_FLAG_COLLECTION_FINISHED = (1 << 27), // when set, data collection is not available for this chart
+
+ RRDSET_FLAG_HAS_RRDCALC_LINKED = (1 << 28), // this chart has at least one rrdcal linked
} RRDSET_FLAGS;
#define rrdset_flag_check(st, flag) (__atomic_load_n(&((st)->flags), __ATOMIC_SEQ_CST) & (flag))
diff --git a/database/rrdcalc.c b/database/rrdcalc.c
index 8e41df8d..398ddb32 100644
--- a/database/rrdcalc.c
+++ b/database/rrdcalc.c
@@ -316,6 +316,7 @@ static void rrdcalc_link_to_rrdset(RRDSET *st, RRDCALC *rc) {
rc->ae = ae;
health_alarm_log_add_entry(host, ae);
+ rrdset_flag_set(st, RRDSET_FLAG_HAS_RRDCALC_LINKED);
}
static void rrdcalc_unlink_from_rrdset(RRDCALC *rc, bool having_ll_wrlock) {