mirror of
https://github.com/Icinga/icinga2.git
synced 2026-04-15 22:00:07 -04:00
Merge pull request #9785 from Icinga/Al2Klimov-patch-8
Icinga DB: also write ConfigObject#original_attributes into Redis
This commit is contained in:
commit
c08d3beeb1
1 changed files with 7 additions and 0 deletions
|
|
@ -1233,9 +1233,16 @@ void IcingaDB::AddObjectDataToRuntimeUpdates(std::vector<Dictionary::Ptr>& runti
|
|||
// for IcingaDB.
|
||||
bool IcingaDB::PrepareObject(const ConfigObject::Ptr& object, Dictionary::Ptr& attributes, Dictionary::Ptr& checksums)
|
||||
{
|
||||
auto originalAttrs (object->GetOriginalAttributes());
|
||||
|
||||
if (originalAttrs) {
|
||||
originalAttrs = originalAttrs->ShallowClone();
|
||||
}
|
||||
|
||||
attributes->Set("name_checksum", SHA1(object->GetName()));
|
||||
attributes->Set("environment_id", m_EnvironmentId);
|
||||
attributes->Set("name", object->GetName());
|
||||
attributes->Set("original_attributes", originalAttrs);
|
||||
|
||||
Zone::Ptr ObjectsZone;
|
||||
Type::Ptr type = object->GetReflectionType();
|
||||
|
|
|
|||
Loading…
Reference in a new issue