mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-16 10:14:28 +02:00
parent
9a678dce8e
commit
783586978f
@ -75,12 +75,6 @@ String IcingaDB::GetObjectIdentifier(const ConfigObject::Ptr& object)
|
|||||||
return HashValue((Array::Ptr)new Array({GetEnvironment(), object->GetName()}));
|
return HashValue((Array::Ptr)new Array({GetEnvironment(), object->GetName()}));
|
||||||
}
|
}
|
||||||
|
|
||||||
String IcingaDB::CalculateCheckSumProperties(const ConfigObject::Ptr& object, const std::set<String>& propertiesBlacklist)
|
|
||||||
{
|
|
||||||
//TODO: consider precision of 6 for double values; use specific config fields for hashing?
|
|
||||||
return HashValue(object, propertiesBlacklist);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const std::set<String> metadataWhitelist ({"package", "source_location", "templates"});
|
static const std::set<String> metadataWhitelist ({"package", "source_location", "templates"});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -83,7 +83,6 @@ private:
|
|||||||
|
|
||||||
static String GetObjectIdentifier(const ConfigObject::Ptr& object);
|
static String GetObjectIdentifier(const ConfigObject::Ptr& object);
|
||||||
static String GetEnvironment();
|
static String GetEnvironment();
|
||||||
static String CalculateCheckSumProperties(const ConfigObject::Ptr& object, const std::set<String>& propertiesBlacklist);
|
|
||||||
static Dictionary::Ptr SerializeVars(const CustomVarObject::Ptr& object);
|
static Dictionary::Ptr SerializeVars(const CustomVarObject::Ptr& object);
|
||||||
|
|
||||||
static String HashValue(const Value& value);
|
static String HashValue(const Value& value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user