[rhmessaging-commits] rhmessaging commits: r4388 - mgmt/trunk/mint/python/mint.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Fri Oct 15 11:46:31 EDT 2010


Author: justi9
Date: 2010-10-15 11:46:31 -0400 (Fri, 15 Oct 2010)
New Revision: 4388

Modified:
   mgmt/trunk/mint/python/mint/update.py
Log:
Improved dropped update handling

Modified: mgmt/trunk/mint/python/mint/update.py
===================================================================
--- mgmt/trunk/mint/python/mint/update.py	2010-10-15 14:49:44 UTC (rev 4387)
+++ mgmt/trunk/mint/python/mint/update.py	2010-10-15 15:46:31 UTC (rev 4388)
@@ -187,9 +187,11 @@
             self.do_process(thread.cursor, thread.stats)
 
             thread.conn.commit()
+        except UpdateDropped:
+            log.debug("Update dropped")
 
-            # XXX UpdateCommitted
-        except UpdateDropped:
+            thread.conn.rollback()
+
             thread.stats.dropped += 1
         except:
             log.exception("Update failed")



More information about the rhmessaging-commits mailing list