From cbe1c181a144839f9cf147245f15fd5e33691329 Mon Sep 17 00:00:00 2001 From: Noah Hilverling Date: Thu, 16 Jan 2020 10:51:44 +0100 Subject: [PATCH] IcingaDB: Fix rescheduling check not always updating state in Redis fixes #7707 --- lib/icingadb/icingadb-objects.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/icingadb/icingadb-objects.cpp b/lib/icingadb/icingadb-objects.cpp index 8a97c8143..d280dea30 100644 --- a/lib/icingadb/icingadb-objects.cpp +++ b/lib/icingadb/icingadb-objects.cpp @@ -2056,6 +2056,7 @@ void IcingaDB::NewCheckResultHandler(const Checkable::Ptr& checkable) void IcingaDB::NextCheckChangedHandler(const Checkable::Ptr& checkable) { for (auto& rw : ConfigType::GetObjectsByType()) { + rw->m_WorkQueue.Enqueue([rw, checkable]() { rw->UpdateState(checkable); }); rw->m_WorkQueue.Enqueue([rw, checkable]() { rw->SendNextUpdate(checkable); }); } }