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) |
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', |