mirror of https://github.com/Icinga/icinga2.git
IcingaDB: Fix rescheduling check not always updating state in Redis
fixes #7707
This commit is contained in:
parent
7caa0867b3
commit
cbe1c181a1
|
@ -2056,6 +2056,7 @@ void IcingaDB::NewCheckResultHandler(const Checkable::Ptr& checkable)
|
||||||
void IcingaDB::NextCheckChangedHandler(const Checkable::Ptr& checkable)
|
void IcingaDB::NextCheckChangedHandler(const Checkable::Ptr& checkable)
|
||||||
{
|
{
|
||||||
for (auto& rw : ConfigType::GetObjectsByType<IcingaDB>()) {
|
for (auto& rw : ConfigType::GetObjectsByType<IcingaDB>()) {
|
||||||
|
rw->m_WorkQueue.Enqueue([rw, checkable]() { rw->UpdateState(checkable); });
|
||||||
rw->m_WorkQueue.Enqueue([rw, checkable]() { rw->SendNextUpdate(checkable); });
|
rw->m_WorkQueue.Enqueue([rw, checkable]() { rw->SendNextUpdate(checkable); });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue