Add 'parent_checksum' for zone objects

This commit is contained in:
Michael Friedrich 2018-07-10 15:16:04 +02:00
parent bb2e7854fd
commit 876d98a13f
1 changed files with 5 additions and 0 deletions

View File

@ -269,6 +269,11 @@ void RedisWriter::SendConfigUpdate(const ConfigObject::Ptr& object, bool useTran
}
checkSums->Set("endpoints_checksum", CalculateCheckSumGroups(endpoints));
Zone::Ptr parentZone = zone->GetParent();
if (parentZone)
checkSums->Set("parent_checksum", GetIdentifier(parentZone));
}
/* zone_checksum for endpoints already is calculated above. */
}