]> granicus.if.org Git - icinga2/commitdiff
Don't update custom vars for each status update
authorGunnar Beutner <gunnar@beutner.name>
Fri, 13 Mar 2015 12:46:00 +0000 (13:46 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 16 Mar 2015 09:23:56 +0000 (10:23 +0100)
fixes #8736

lib/db_ido/dbobject.cpp

index 7b3068833d06b58ab4038036ceb86e212d5f291c..b2749364380c7f7f6e3e7eaefb296a5f6dfbe41f 100644 (file)
@@ -78,10 +78,11 @@ DbType::Ptr DbObject::GetType(void) const
 
 void DbObject::SendConfigUpdate(void)
 {
-       /* update custom var config for all objects */
+       /* update custom var config and status */
        SendVarsConfigUpdate();
+       SendVarsStatusUpdate();
 
-       /* config objects */
+       /* config attributes */
        Dictionary::Ptr fields = GetConfigFields();
 
        if (!fields)
@@ -108,10 +109,7 @@ void DbObject::SendConfigUpdate(void)
 
 void DbObject::SendStatusUpdate(void)
 {
-       /* update custom var status for all objects */
-       SendVarsStatusUpdate();
-
-       /* status objects */
+       /* status attributes */
        Dictionary::Ptr fields = GetStatusFields();
 
        if (!fields)