summaryrefslogtreecommitdiffstats
path: root/health/health_log.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-08 16:27:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-08 16:27:04 +0000
commita836a244a3d2bdd4da1ee2641e3e957850668cea (patch)
treecb87c75b3677fab7144f868435243f864048a1e6 /health/health_log.c
parentAdding upstream version 1.38.1. (diff)
downloadnetdata-a836a244a3d2bdd4da1ee2641e3e957850668cea.tar.xz
netdata-a836a244a3d2bdd4da1ee2641e3e957850668cea.zip
Adding upstream version 1.39.0.upstream/1.39.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'health/health_log.c')
-rw-r--r--health/health_log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/health/health_log.c b/health/health_log.c
index d3417493b..b1f59a1a5 100644
--- a/health/health_log.c
+++ b/health/health_log.c
@@ -95,6 +95,8 @@ inline void health_alarm_log_add_entry(
) {
debug(D_HEALTH, "Health adding alarm log entry with id: %u", ae->unique_id);
+ __atomic_add_fetch(&host->health_transitions, 1, __ATOMIC_RELAXED);
+
// link it
netdata_rwlock_wrlock(&host->health_log.alarm_log_rwlock);
ae->next = host->health_log.alarms;