equal
deleted
inserted
replaced
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', |