mirror of https://github.com/Icinga/icinga2.git
Merge pull request #7760 from Icinga/bugfix/icingadb-manually-rescheduling-a-check-does-not-update-next_update-and-next_check-7707
IcingaDB: Fix rescheduling a check not always updating state in Redis
This commit is contained in:
commit
f11cccf874
|
@ -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); });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue