mirror of https://github.com/Icinga/icinga2.git
parent
c5fe42e0b0
commit
3bca951b81
|
@ -82,7 +82,8 @@ void StatusDataWriter::Start(void)
|
|||
m_StatusTimer->Start();
|
||||
m_StatusTimer->Reschedule(0);
|
||||
|
||||
ConfigObject::OnVersionChanged.connect(boost::bind(&StatusDataWriter::VersionChangedHandler, this));
|
||||
ConfigObject::OnVersionChanged.connect(boost::bind(&StatusDataWriter::ObjectHandler, this));
|
||||
ConfigObject::OnActiveChanged.connect(boost::bind(&StatusDataWriter::ObjectHandler, this));
|
||||
}
|
||||
|
||||
void StatusDataWriter::DumpComments(std::ostream& fp, const Checkable::Ptr& checkable)
|
||||
|
@ -867,7 +868,7 @@ void StatusDataWriter::StatusTimerHandler(void)
|
|||
<< "Writing status.dat file took " << Utility::FormatDuration(Utility::GetTime() - start);
|
||||
}
|
||||
|
||||
void StatusDataWriter::VersionChangedHandler(void)
|
||||
void StatusDataWriter::ObjectHandler(void)
|
||||
{
|
||||
m_ObjectsCacheOutdated = true;
|
||||
}
|
||||
|
|
|
@ -100,7 +100,7 @@ private:
|
|||
|
||||
void UpdateObjectsCache(void);
|
||||
void StatusTimerHandler(void);
|
||||
void VersionChangedHandler(void);
|
||||
void ObjectHandler(void);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue