RedisWriter: dump endpoints' zones' identifiers (zone_checksum)

This commit is contained in:
Alexander A. Klimov 2018-06-25 17:13:13 +02:00 committed by Michael Friedrich
parent 550e385b9e
commit 50d83e850f
1 changed files with 7 additions and 0 deletions

View File

@ -232,6 +232,13 @@ void RedisWriter::SendConfigUpdate(const ConfigObject::Ptr& object, bool useTran
}
checkSums->Set("endpoints_checksum", CalculateCheckSumGroups(endpoints));
} else {
Endpoint::Ptr endpoint = dynamic_pointer_cast<Endpoint>(object);
if (endpoint) {
ConfigObject::Ptr zone = endpoint->GetZone();
checkSums->Set("zone_checksum", GetIdentifier(zone));
}
}
}