server/session.py
changeset 8091 fc75f76c81aa
parent 8090 0b5639aa2dac
child 8096 e1b21db042d6
equal deleted inserted replaced
8090:0b5639aa2dac 8091:fc75f76c81aa
   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                     self.critical('operation precommit failed for %s', operation.__class__.__name__, exc_info=True)
   998                     for operation in reversed(processed):
   998                     for operation in reversed(processed):
   999                         try:
   999                         try:
  1000                             operation.handle_event('revertprecommit_event')
  1000                             operation.handle_event('revertprecommit_event')
  1001                         except BaseException:
  1001                         except BaseException:
  1002                             self.critical('error while reverting precommit',
  1002                             self.critical('error while reverting precommit',