mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
Merge pull request #9018 from Icinga/feature/sync-checkables-states-first
Icinga DB: sync checkables along with their states first
This commit is contained in:
commit
766bb2e546
@ -44,18 +44,23 @@ INITIALIZE_ONCE(&IcingaDB::ConfigStaticInitialize);
|
|||||||
|
|
||||||
std::vector<Type::Ptr> IcingaDB::GetTypes()
|
std::vector<Type::Ptr> IcingaDB::GetTypes()
|
||||||
{
|
{
|
||||||
|
// The initial config sync will queue the types in the following order.
|
||||||
return {
|
return {
|
||||||
CheckCommand::TypeInstance,
|
// Sync them first to get their states ASAP.
|
||||||
Comment::TypeInstance,
|
Host::TypeInstance,
|
||||||
|
Service::TypeInstance,
|
||||||
|
|
||||||
|
// Then sync them for similar reasons.
|
||||||
Downtime::TypeInstance,
|
Downtime::TypeInstance,
|
||||||
|
Comment::TypeInstance,
|
||||||
|
|
||||||
|
HostGroup::TypeInstance,
|
||||||
|
ServiceGroup::TypeInstance,
|
||||||
|
CheckCommand::TypeInstance,
|
||||||
Endpoint::TypeInstance,
|
Endpoint::TypeInstance,
|
||||||
EventCommand::TypeInstance,
|
EventCommand::TypeInstance,
|
||||||
Host::TypeInstance,
|
|
||||||
HostGroup::TypeInstance,
|
|
||||||
Notification::TypeInstance,
|
Notification::TypeInstance,
|
||||||
NotificationCommand::TypeInstance,
|
NotificationCommand::TypeInstance,
|
||||||
Service::TypeInstance,
|
|
||||||
ServiceGroup::TypeInstance,
|
|
||||||
TimePeriod::TypeInstance,
|
TimePeriod::TypeInstance,
|
||||||
User::TypeInstance,
|
User::TypeInstance,
|
||||||
UserGroup::TypeInstance,
|
UserGroup::TypeInstance,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user