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

Method HashValue

lib/db_ido/dbobject.cpp:98–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98String DbObject::HashValue(const Value& value)
99{
100 Value temp;
101
102 Type::Ptr type = value.GetReflectionType();
103
104 if (ConfigObject::TypeInstance->IsAssignableFrom(type))
105 temp = Serialize(value, FAConfig);
106 else
107 temp = value;
108
109 return SHA256(JsonEncode(temp));
110}
111
112void DbObject::SendConfigUpdateHeavy(const Dictionary::Ptr& configFields)
113{

Callers

nothing calls this directly

Calls 3

SHA256Function · 0.85
IsAssignableFromMethod · 0.80
GetReflectionTypeMethod · 0.45

Tested by

no test coverage detected