IcingaDB: Fix rescheduling check not always updating state in Redis

fixes #7707
This commit is contained in:
Noah Hilverling 2020-01-16 10:51:44 +01:00
parent 7caa0867b3
commit cbe1c181a1
1 changed files with 1 additions and 0 deletions

View File

@ -2056,6 +2056,7 @@ void IcingaDB::NewCheckResultHandler(const Checkable::Ptr& checkable)
void IcingaDB::NextCheckChangedHandler(const Checkable::Ptr& checkable)
{
for (auto& rw : ConfigType::GetObjectsByType<IcingaDB>()) {
rw->m_WorkQueue.Enqueue([rw, checkable]() { rw->UpdateState(checkable); });
rw->m_WorkQueue.Enqueue([rw, checkable]() { rw->SendNextUpdate(checkable); });
}
}