mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Merge pull request #8641 from Icinga/bugfix/icingadb-types
Icinga DB: don't write all types
This commit is contained in:
commit
0b55073964
@ -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…
x
Reference in New Issue
Block a user