Comment 3 for bug 1254227

Revision history for this message
Alexey Kopytov (akopytov) wrote : Re: Percona Server 5.6 fails to start on prepared backup

I think it is a regression introduced when porting XtraBackup patches to 5.6. Patches against lower server versions contain the following changes in trx_lists_init_at_db_start():

--- a/storage/innobase/trx/trx0trx.c
+++ b/storage/innobase/trx/trx0trx.c
@@ -522,9 +522,8 @@
       (ullint) trx->id);

      if (srv_force_recovery == 0) {
-
- trx->conc_state = TRX_PREPARED;
- trx_n_prepared++;
+ /* xtrabackup should rollback it */
+ trx->conc_state = TRX_ACTIVE;
      } else {
       fprintf(stderr,
        "InnoDB: Since"

I.e. prepared XA transactions are converted to active and thus, rolled back.

However, I don't see those changes in https://bazaar.launchpad.net/~laurynas-biveinis/percona-xtrabackup/BT-28340-2.0/revision/506