server/session.py
changeset 8090 0b5639aa2dac
parent 7990 a673d1d9a738
child 8091 fc75f76c81aa
equal deleted inserted replaced
8089:0bce018bc7d7 8090:0b5639aa2dac
   992                     # that seems more natural than not calling rollback_event
   992                     # that seems more natural than not calling rollback_event
   993                     # for processed operations, and allow generic rollback
   993                     # for processed operations, and allow generic rollback
   994                     # instead of having to implements rollback, revertprecommit
   994                     # instead of having to implements rollback, revertprecommit
   995                     # and revertcommit, that will be enough in mont case.
   995                     # and revertcommit, that will be enough in mont case.
   996                     operation.failed = True
   996                     operation.failed = True
       
   997                     self.critical('operation precommit failed for %s', operation.__class__.__name, exc_info=True)
   997                     for operation in reversed(processed):
   998                     for operation in reversed(processed):
   998                         try:
   999                         try:
   999                             operation.handle_event('revertprecommit_event')
  1000                             operation.handle_event('revertprecommit_event')
  1000                         except BaseException:
  1001                         except BaseException:
  1001                             self.critical('error while reverting precommit',
  1002                             self.critical('error while reverting precommit',