diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-18 15:47:38 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-18 15:47:38 +0000 |
commit | fa5116c43f7b9638fc9c0cc187311c3e313dd8d4 (patch) | |
tree | c9d424502e4d48c5c2c02d95901163a7f277df5e /database | |
parent | Adding upstream version 1.42.3. (diff) | |
download | netdata-fa5116c43f7b9638fc9c0cc187311c3e313dd8d4.tar.xz netdata-fa5116c43f7b9638fc9c0cc187311c3e313dd8d4.zip |
Adding upstream version 1.42.4.upstream/1.42.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'database')
-rw-r--r-- | database/rrd.h | 2 | ||||
-rw-r--r-- | database/rrdcalc.c | 1 |
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) { |