mirror of https://github.com/Icinga/icinga2.git
RedisWriter: dump all_parents_checksum and all_parents_checksums for zones
This commit is contained in:
parent
cd05240624
commit
4d40293217
|
@ -327,6 +327,15 @@ void RedisWriter::SendConfigUpdate(const ConfigObject::Ptr& object, bool useTran
|
|||
|
||||
if (parentZone)
|
||||
checkSums->Set("parent_checksum", GetObjectIdentifier(parentZone));
|
||||
|
||||
Array::Ptr parents (new Array);
|
||||
|
||||
for (auto& parent : zone->GetAllParentsRaw()) {
|
||||
parents->Add(GetObjectIdentifier(parent));
|
||||
}
|
||||
|
||||
checkSums->Set("all_parents_checksums", parents);
|
||||
checkSums->Set("all_parents_checksum", HashValue(zone->GetAllParents()));
|
||||
} else {
|
||||
/* zone_checksum for endpoints already is calculated above. */
|
||||
|
||||
|
|
Loading…
Reference in New Issue