Only sync zone_checksum when object in zone

This commit is contained in:
Jean Flach 2018-07-03 13:30:10 +02:00 committed by Michael Friedrich
parent 85f621cb90
commit a4b0f9125e
1 changed files with 2 additions and 1 deletions

View File

@ -217,7 +217,8 @@ void RedisWriter::SendConfigUpdate(const ConfigObject::Ptr& object, bool useTran
checkSums->Set("group_checksums", groupChecksums);
checkSums->Set("zone_checksum", GetIdentifier(checkable->GetZone()));
if (checkable->GetZone())
checkSums->Set("zone_checksum", GetIdentifier(checkable->GetZone()));
} else {
Zone::Ptr zone = dynamic_pointer_cast<Zone>(object);