mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
Don't discard config validators
This commit is contained in:
parent
47842e2797
commit
c33e78aa04
@ -378,7 +378,6 @@ bool ConfigItem::CommitItems(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ApplyRule::CheckMatches();
|
ApplyRule::CheckMatches();
|
||||||
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()) {
|
||||||
|
@ -269,11 +269,6 @@ ConfigTypeRegistry::ItemMap ConfigType::GetTypes(void)
|
|||||||
return ConfigTypeRegistry::GetInstance()->GetItems();
|
return ConfigTypeRegistry::GetInstance()->GetItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigType::DiscardTypes(void)
|
|
||||||
{
|
|
||||||
ConfigTypeRegistry::GetInstance()->Clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
ConfigTypeRegistry *ConfigTypeRegistry::GetInstance(void)
|
ConfigTypeRegistry *ConfigTypeRegistry::GetInstance(void)
|
||||||
{
|
{
|
||||||
return Singleton<ConfigTypeRegistry>::GetInstance();
|
return Singleton<ConfigTypeRegistry>::GetInstance();
|
||||||
|
@ -56,7 +56,6 @@ public:
|
|||||||
void Register(void);
|
void Register(void);
|
||||||
static ConfigType::Ptr GetByName(const String& name);
|
static ConfigType::Ptr GetByName(const String& name);
|
||||||
static Registry<ConfigType, ConfigType::Ptr>::ItemMap GetTypes(void);
|
static Registry<ConfigType, ConfigType::Ptr>::ItemMap GetTypes(void);
|
||||||
static void DiscardTypes(void);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
String m_Name; /**< The type name. */
|
String m_Name; /**< The type name. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user