[rhmessaging-commits] rhmessaging commits: r4297 - mgmt/newdata/mint/python/mint.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Sep 16 06:45:52 EDT 2010


Author: justi9
Date: 2010-09-16 06:45:52 -0400 (Thu, 16 Sep 2010)
New Revision: 4297

Modified:
   mgmt/newdata/mint/python/mint/update.py
Log:
Disable by-class stats; they cause trouble on earlier python versions

Modified: mgmt/newdata/mint/python/mint/update.py
===================================================================
--- mgmt/newdata/mint/python/mint/update.py	2010-09-15 21:56:28 UTC (rev 4296)
+++ mgmt/newdata/mint/python/mint/update.py	2010-09-16 10:45:52 UTC (rev 4297)
@@ -349,7 +349,7 @@
         self.model.print_event(3, "Created %s", obj)
 
         stats.objects_created += 1
-        stats.objects_created_by_class[cls] += 1
+        #stats.objects_created_by_class[cls] += 1
 
         return obj
 
@@ -406,7 +406,7 @@
         self.model.print_event(4, "Updated %s", obj)
 
         stats.objects_updated += 1
-        stats.objects_updated_by_class[cls] += 1
+        #stats.objects_updated_by_class[cls] += 1
 
     def delete_object(self, cursor, stats, obj):
         obj.delete(cursor)
@@ -414,7 +414,7 @@
         self.model.print_event(3, "Deleted %s", obj)
 
         stats.objects_deleted += 1
-        stats.objects_deleted_by_class[obj._class] += 1
+        #stats.objects_deleted_by_class[obj._class] += 1
 
     def process_properties(self, obj, columns, cursor):
         cls = obj._class
@@ -603,7 +603,7 @@
                 count = cls.delete_selection(cursor, _qmf_agent_id=agent.id)
 
                 stats.objects_deleted += count
-                stats.objects_deleted_by_class[cls] += count
+                #stats.objects_deleted_by_class[cls] += count
 
                 cursor.connection.commit()
 



More information about the rhmessaging-commits mailing list