Skip to content

Commit

Permalink
Merge pull request #9081 from Icinga/feature/sync-checkables-states-f…
Browse files Browse the repository at this point in the history
…irst-2.13

Icinga DB: sync checkables along with their states first
  • Loading branch information
N-o-X authored Nov 11, 2021
2 parents c058666 + 8c18708 commit b536caa
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions lib/icingadb/icingadb-objects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,23 @@ INITIALIZE_ONCE(&IcingaDB::ConfigStaticInitialize);

std::vector<Type::Ptr> IcingaDB::GetTypes()
{
// The initial config sync will queue the types in the following order.
return {
CheckCommand::TypeInstance,
Comment::TypeInstance,
// Sync them first to get their states ASAP.
Host::TypeInstance,
Service::TypeInstance,

// Then sync them for similar reasons.
Downtime::TypeInstance,
Comment::TypeInstance,

HostGroup::TypeInstance,
ServiceGroup::TypeInstance,
CheckCommand::TypeInstance,
Endpoint::TypeInstance,
EventCommand::TypeInstance,
Host::TypeInstance,
HostGroup::TypeInstance,
Notification::TypeInstance,
NotificationCommand::TypeInstance,
Service::TypeInstance,
ServiceGroup::TypeInstance,
TimePeriod::TypeInstance,
User::TypeInstance,
UserGroup::TypeInstance,
Expand Down

0 comments on commit b536caa

Please sign in to comment.