Phase Two - Rollback Process
After receiving the branch rollback request from TC, start a local transaction and perform the following operations.
Find the corresponding UNDO LOG record through XID and Branch ID.
Data verification: Compare the back mirror in the UNDO LOG with the current data. If there is a difference, it means that the data has been modified by an action other than the current global transaction. In this case, it needs to be handled according to the configuration policy, and the detailed description is introduced in another document.
Generate and execute a rollback statement based on the previous image in the UNDO LOG and the relevant information of the business SQL.
Submit the local transaction, and report the execution result of the local transaction (that is, the result of the rollback of the branch transaction) to the TC.
Last updated