fixed issue 1623:Storing tickets in DB will produce a deadlock on an internal error, thanks lumurer

This commit is contained in:
mdipierro
2013-08-09 13:38:22 -05:00
parent aeb15317e0
commit a71998def0
2 changed files with 2 additions and 1 deletions

View File

@@ -1 +1 @@
Version 2.6.0-development+timestamp.2013.08.09.11.04.59
Version 2.6.0-development+timestamp.2013.08.09.13.37.02

View File

@@ -52,6 +52,7 @@ class TicketStorage(Storage):
table.insert(ticket_id=ticket_id,
ticket_data=cPickle.dumps(ticket_data),
created_datetime=request.now)
self.db.commit()
logger.error('In FILE: %(layer)s\n\n%(traceback)s\n' % ticket_data)
def _store_on_disk(self, request, ticket_id, ticket_data):