Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL)
Description
We should revert part of this InnoDB change in MySQL 5.0.3 (making innodb_force_recovery=1 and innodb_force_recovery=2 initiate rollback of a transaction that reached the XA PREPARE state before previous crash or shutdown) (March 2005).
It seems that the option tc_heuristic_recover=ROLLBACK in MySQL 5.0.3 (January 2005) was introduced for exactly this purpose; there was no need to convolute the logic of an already confusing InnoDB parameter.
Attachments
Issue Links
- relates to
-
MDEV-13437 InnoDB fails to return error for XA COMMIT or XA ROLLBACK in read-only mode
-
- Closed
-
Actually the questionable logic for rolling back XA PREPARE transactions was added already in a March 1, 2005 commit, that is, 12 days before the refactoring, which also added innodb_support_xa that was made a no-op in MySQL 5.7.10 and MariaDB 10.2.6 and removed in MariaDB 10.3.0.