server/session.py
changeset 8096 e1b21db042d6
parent 8091 fc75f76c81aa
child 8190 2a3c1b787688
equal deleted inserted replaced
8095:5ad0f8ac7561 8096:e1b21db042d6
   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)
       
   998                     for operation in reversed(processed):
   997                     for operation in reversed(processed):
   999                         try:
   998                         try:
  1000                             operation.handle_event('revertprecommit_event')
   999                             operation.handle_event('revertprecommit_event')
  1001                         except BaseException:
  1000                         except BaseException:
  1002                             self.critical('error while reverting precommit',
  1001                             self.critical('error while reverting precommit',