Code

Add ability to ignore bad daemon configs
authordaryder <daryder@cisco.com>
Thu, 4 Dec 2014 20:09:19 +0000 (15:09 -0500)
committerdaryder <daryder@cisco.com>
Thu, 4 Dec 2014 20:09:19 +0000 (15:09 -0500)
src/ceph.c

index fb215ef99fda7c0f02f1e4c97c446040dc772390..5726e0103581647b3cd0a96908e5492437903ede 100644 (file)
@@ -791,10 +791,16 @@ static int ceph_config(oconfig_item_t *ci)
         if(strcasecmp("Daemon", child->key) == 0)
         {
             ret = cc_add_daemon_config(child);
-            if(ret)
+            if(ret == ENOMEM)
             {
+                ERROR("ceph plugin: Couldn't allocate memory");
                 return ret;
             }
+            else if(ret)
+            {
+                //process other daemons and ignore this one
+                continue;
+            }
         }
         else if(strcasecmp("LongRunAvgLatency", child->key) == 0)
         {