diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-18 15:47:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-18 15:47:41 +0000 |
commit | eb53d1fe877874a69ba36de0c1be29405cb12a6e (patch) | |
tree | 81f61cc1d0517769b6acff80865a03ca564dfc8a /database | |
parent | Releasing debian version 1.42.3-1. (diff) | |
download | netdata-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.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) { |