[Erp5-report] r19077 - /erp5/trunk/products/CMFActivity/Activity/SQLQueue.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 5 19:14:53 CET 2008
Author: vincent
Date: Tue Feb 5 19:14:53 2008
New Revision: 19077
URL: http://svn.erp5.org?rev=19077&view=rev
Log:
It is not needed any more to rollback transaction: we just called abort.
Modified:
erp5/trunk/products/CMFActivity/Activity/SQLQueue.py
Modified: erp5/trunk/products/CMFActivity/Activity/SQLQueue.py
URL: http://svn.erp5.org/erp5/trunk/products/CMFActivity/Activity/SQLQueue.py?rev=19077&r1=19076&r2=19077&view=diff
==============================================================================
--- erp5/trunk/products/CMFActivity/Activity/SQLQueue.py (original)
+++ erp5/trunk/products/CMFActivity/Activity/SQLQueue.py Tue Feb 5 19:14:53 2008
@@ -296,13 +296,6 @@
# of the transaction fails
value[1].is_executed = 0
try:
- # Rollback all changes made on activity connection.
- # We will commit to make messages available, and we cannot control
- # what was done by the activity: it might have used the activity
- # connection. As the transaction failed, we must rollback these
- # potential changes before being allowed to commit in
- # makeMessageListAvailable.
- activity_tool.SQLQueue_rollback()
makeMessageListAvailable([value[0]])
except:
LOG('SQLQueue', PANIC, 'Failed to free message: %r' % (value, ), error=sys.exc_info())
More information about the Erp5-report
mailing list