From a5aef627f835de9aa92df18817e3c05987416ee5 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 7 Jun 2018 12:53:05 +0200 Subject: [PATCH] RedisWriter: use __name as object key --- lib/redis/rediswriter-objects.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/redis/rediswriter-objects.cpp b/lib/redis/rediswriter-objects.cpp index 7dac7287e..e9652f847 100644 --- a/lib/redis/rediswriter-objects.cpp +++ b/lib/redis/rediswriter-objects.cpp @@ -149,8 +149,8 @@ void RedisWriter::SendConfigUpdate(const ConfigObject::Ptr& object, bool useTran Type::Ptr type = object->GetReflectionType(); String typeName = type->GetName().ToLower(); - String objectKey = CalculateCheckSumString(object->GetName()); - //String objectKey = object->GetName(); + //String objectKey = CalculateCheckSumString(object->GetName()); + String objectKey = object->GetName(); std::set propertiesBlacklist ({"name", "__name", "package", "source_location", "templates"}); @@ -229,8 +229,8 @@ void RedisWriter::SendConfigDelete(const ConfigObject::Ptr& object) return; String typeName = object->GetReflectionType()->GetName().ToLower(); - String objectKey = CalculateCheckSumString(object->GetName()); - //String objectKey = object->GetName(); + //String objectKey = CalculateCheckSumString(object->GetName()); + String objectKey = object->GetName(); ExecuteQueries({ { "DEL", "icinga:config:" + typeName + ":" + objectKey }, @@ -342,8 +342,8 @@ void RedisWriter::UpdateObjectAttrs(const String& keyPrefix, const ConfigObject: String objectName = object->GetName(); /* Use the name checksum as unique key. */ - String objectKey = CalculateCheckSumString(object->GetName()); - //String objectKey = object->GetName(); + //String objectKey = CalculateCheckSumString(object->GetName()); + String objectKey = object->GetName(); std::vector > queries;