mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +02:00
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)
|
if (parentZone)
|
||||||
checkSums->Set("parent_checksum", GetObjectIdentifier(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 {
|
} else {
|
||||||
/* zone_checksum for endpoints already is calculated above. */
|
/* zone_checksum for endpoints already is calculated above. */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user