mirror of https://github.com/Icinga/icinga2.git
Icinga DB: don't write all types
This commit is contained in:
parent
aa4f53009e
commit
d4a91ec50d
|
@ -127,7 +127,23 @@ void IcingaDB::UpdateAllConfigObjects()
|
||||||
typedef std::pair<ConfigType *, String> TypePair;
|
typedef std::pair<ConfigType *, String> TypePair;
|
||||||
std::vector<TypePair> types;
|
std::vector<TypePair> types;
|
||||||
|
|
||||||
for (const Type::Ptr& type : Type::GetAllTypes()) {
|
for (const Type::Ptr& type : {
|
||||||
|
CheckCommand::TypeInstance,
|
||||||
|
Comment::TypeInstance,
|
||||||
|
Downtime::TypeInstance,
|
||||||
|
Endpoint::TypeInstance,
|
||||||
|
EventCommand::TypeInstance,
|
||||||
|
Host::TypeInstance,
|
||||||
|
HostGroup::TypeInstance,
|
||||||
|
Notification::TypeInstance,
|
||||||
|
NotificationCommand::TypeInstance,
|
||||||
|
Service::TypeInstance,
|
||||||
|
ServiceGroup::TypeInstance,
|
||||||
|
TimePeriod::TypeInstance,
|
||||||
|
User::TypeInstance,
|
||||||
|
UserGroup::TypeInstance,
|
||||||
|
Zone::TypeInstance
|
||||||
|
}) {
|
||||||
ConfigType *ctype = dynamic_cast<ConfigType *>(type.get());
|
ConfigType *ctype = dynamic_cast<ConfigType *>(type.get());
|
||||||
if (!ctype)
|
if (!ctype)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue