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

Method VersionChangedHandler

lib/db_ido/dbobject.cpp:436–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436void DbObject::VersionChangedHandler(const ConfigObject::Ptr& object)
437{
438 DbObject::Ptr dbobj = DbObject::GetOrCreateByObject(object);
439
440 if (dbobj) {
441 Dictionary::Ptr configFields = dbobj->GetConfigFields();
442 String configHash = dbobj->CalculateConfigHash(configFields);
443 configFields->Set("config_hash", configHash);
444
445 dbobj->SendConfigUpdateHeavy(configFields);
446 dbobj->SendStatusUpdate();
447 }
448}
449
450std::mutex& DbObject::GetStaticMutex()
451{

Callers

nothing calls this directly

Calls 5

SendConfigUpdateHeavyMethod · 0.80
SendStatusUpdateMethod · 0.80
GetConfigFieldsMethod · 0.45
CalculateConfigHashMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected