mirror of https://github.com/Icinga/icinga2.git
parent
a4ba11bd13
commit
38aa231a2d
|
@ -113,9 +113,6 @@ static bool LoadConfigFiles(const String& appType, bool validateOnly)
|
||||||
if (!result)
|
if (!result)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
ConfigItem::DiscardItems();
|
|
||||||
ConfigType::DiscardTypes();
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -313,6 +313,9 @@ bool ConfigItem::ActivateItems(bool validateOnly)
|
||||||
|
|
||||||
upq.Join();
|
upq.Join();
|
||||||
|
|
||||||
|
ConfigItem::DiscardItems();
|
||||||
|
ConfigType::DiscardTypes();
|
||||||
|
|
||||||
/* log stats for external parsers */
|
/* log stats for external parsers */
|
||||||
BOOST_FOREACH(const DynamicType::Ptr& type, DynamicType::GetTypes()) {
|
BOOST_FOREACH(const DynamicType::Ptr& type, DynamicType::GetTypes()) {
|
||||||
if (type->GetObjects().size() > 0)
|
if (type->GetObjects().size() > 0)
|
||||||
|
|
Loading…
Reference in New Issue