]> granicus.if.org Git - icinga2/commitdiff
Only export config objects to Redis
authorGunnar Beutner <gunnar.beutner@icinga.com>
Thu, 16 Mar 2017 08:14:45 +0000 (09:14 +0100)
committerGunnar Beutner <gunnar.beutner@icinga.com>
Thu, 16 Mar 2017 12:58:23 +0000 (13:58 +0100)
refs #4991

lib/redis/rediswriter-config.cpp

index 300ce952da62e0c4ebe9af32328edb0327a69d9d..1b62e144ab848b1205256b7496bed9ac715ce48e 100644 (file)
@@ -41,9 +41,10 @@ value: JsonEncode(Serialize(object, FAState))
 //TODO: OnActiveChanged handling.
 void RedisWriter::UpdateAllConfigObjects(void)
 {
-
        //TODO: Just use config types
        for (const Type::Ptr& type : Type::GetAllTypes()) {
+               if (!ConfigObject::TypeInstance->IsAssignableFrom(type))
+                       continue;
 
                String typeName = type->GetName();