MCPcopy Create free account
hub / github.com/Icinga/icinga2 / UpdateAllObjects

Method UpdateAllObjects

lib/db_ido/dbconnection.cpp:503–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503void DbConnection::UpdateAllObjects()
504{
505 for (const Type::Ptr& type : Type::GetAllTypes()) {
506 auto *dtype = dynamic_cast<ConfigType *>(type.get());
507
508 if (!dtype)
509 continue;
510
511 for (const ConfigObject::Ptr& object : dtype->GetObjects()) {
512 m_QueryQueue.Enqueue([this, object](){ UpdateObject(object); }, PriorityHigh);
513 }
514 }
515}
516
517void DbConnection::PrepareDatabase()
518{

Callers

nothing calls this directly

Calls 3

getMethod · 0.45
GetObjectsMethod · 0.45
EnqueueMethod · 0.45

Tested by

no test coverage detected