RedisWriter: dump all_parents_checksum and all_parents_checksums for zones

This commit is contained in:
Alexander A. Klimov 2018-08-08 14:26:41 +02:00 committed by Michael Friedrich
parent cd05240624
commit 4d40293217
1 changed files with 9 additions and 0 deletions

View File

@ -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. */