diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-11-01 04:35:02 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-11-01 04:35:02 +0000 |
commit | f46fa6ea7a7c1d3a5356328dcd1e9cd8d899ad6c (patch) | |
tree | 51e2ac3d20753365840cbfa1972faee760138a5f /database/sqlite/sqlite_aclk_alert.c | |
parent | Adding upstream version 1.43.1. (diff) | |
download | netdata-f46fa6ea7a7c1d3a5356328dcd1e9cd8d899ad6c.tar.xz netdata-f46fa6ea7a7c1d3a5356328dcd1e9cd8d899ad6c.zip |
Adding upstream version 1.43.2.upstream/1.43.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | database/sqlite/sqlite_aclk_alert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/database/sqlite/sqlite_aclk_alert.c b/database/sqlite/sqlite_aclk_alert.c index e25b0f0ec..60bf5dbdc 100644 --- a/database/sqlite/sqlite_aclk_alert.c +++ b/database/sqlite/sqlite_aclk_alert.c @@ -71,9 +71,9 @@ fail: //decide if some events should be sent or not #define SQL_SELECT_ALERT_BY_ID \ "SELECT hld.new_status, hl.config_hash_id, hld.unique_id FROM health_log hl, aclk_alert_%s aa, health_log_detail hld " \ - "WHERE hl.host_id = @host_id AND hld.unique_id = aa.filtered_alert_unique_id " \ + "WHERE hl.host_id = @host_id AND +hld.unique_id = aa.filtered_alert_unique_id " \ "AND hld.alarm_id = @alarm_id AND hl.health_log_id = hld.health_log_id " \ - "ORDER BY hld.alarm_event_id DESC LIMIT 1;" + "ORDER BY hld.rowid DESC LIMIT 1;" static bool should_send_to_cloud(RRDHOST *host, ALARM_ENTRY *ae) { |