mirror of https://github.com/Icinga/icinga2.git
Added missing *::InvalidateMembersCache() calls.
This commit is contained in:
parent
ab66fbfc88
commit
a0e7f751cd
|
@ -43,6 +43,11 @@ Host::Host(const Dictionary::Ptr& properties)
|
|||
HostGroup::InvalidateMembersCache();
|
||||
}
|
||||
|
||||
Host::~Host(void)
|
||||
{
|
||||
HostGroup::InvalidateMembersCache();
|
||||
}
|
||||
|
||||
String Host::GetAlias(void) const
|
||||
{
|
||||
String value = Get("alias");
|
||||
|
|
|
@ -35,6 +35,7 @@ public:
|
|||
typedef weak_ptr<Host> WeakPtr;
|
||||
|
||||
Host(const Dictionary::Ptr& properties);
|
||||
~Host(void);
|
||||
|
||||
static bool Exists(const String& name);
|
||||
static Host::Ptr GetByName(const String& name);
|
||||
|
|
|
@ -66,6 +66,11 @@ Service::Service(const Dictionary::Ptr& serializedObject)
|
|||
ServiceGroup::InvalidateMembersCache();
|
||||
}
|
||||
|
||||
Service::~Service(void)
|
||||
{
|
||||
ServiceGroup::InvalidateMembersCache();
|
||||
}
|
||||
|
||||
String Service::GetAlias(void) const
|
||||
{
|
||||
String value = Get("alias");
|
||||
|
|
|
@ -75,6 +75,7 @@ public:
|
|||
typedef weak_ptr<Service> WeakPtr;
|
||||
|
||||
Service(const Dictionary::Ptr& properties);
|
||||
~Service(void);
|
||||
|
||||
static bool Exists(const String& name);
|
||||
static Service::Ptr GetByName(const String& name);
|
||||
|
|
Loading…
Reference in New Issue