Commit 8517282c authored by Vincent Pelletier's avatar Vincent Pelletier

It is not needed any more to rollback transaction: we just called abort.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19077 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2c49f505
......@@ -296,13 +296,6 @@ class SQLQueue(RAMQueue, SQLBase):
# 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())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment