From a4b0f9125e4929ff5ef66e6aed162014dc2c62b5 Mon Sep 17 00:00:00 2001 From: Jean Flach Date: Tue, 3 Jul 2018 13:30:10 +0200 Subject: [PATCH] Only sync zone_checksum when object in zone --- lib/redis/rediswriter-objects.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/redis/rediswriter-objects.cpp b/lib/redis/rediswriter-objects.cpp index 0b93bcd34..570a0efd3 100644 --- a/lib/redis/rediswriter-objects.cpp +++ b/lib/redis/rediswriter-objects.cpp @@ -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(object);