Loading innobase/trx/trx0trx.c +29 −5 Original line number Diff line number Diff line Loading @@ -434,7 +434,19 @@ trx_lists_init_at_db_start(void) commit or abort decision from MySQL */ if (undo->state == TRX_UNDO_PREPARED) { trx->conc_state = TRX_PREPARED; fprintf(stderr, "InnoDB: Transaction %lu %lu was in the XA prepared state. We change it to\n" "InnoDB: the 'active' state, so that InnoDB's true-and-tested crash\n" "InnoDB: recovery will roll it back. If mysqld refuses to start after\n" "InnoDB: this, you may be able to resolve the problem by moving the binlog\n" "InnoDB: files to a safe place, and deleting all binlog files and the binlog\n" "InnoDB: .index file from the datadir.\n", ut_dulint_get_high(trx->id), ut_dulint_get_low(trx->id)); /* trx->conc_state = TRX_PREPARED; */ trx->conc_state = TRX_ACTIVE; } else { trx->conc_state = TRX_COMMITTED_IN_MEMORY; Loading Loading @@ -490,8 +502,20 @@ trx_lists_init_at_db_start(void) commit or abort decision from MySQL */ if (undo->state == TRX_UNDO_PREPARED) { fprintf(stderr, "InnoDB: Transaction %lu %lu was in the XA prepared state. We change it to\n" "InnoDB: the 'active' state, so that InnoDB's true-and-tested crash\n" "InnoDB: recovery will roll it back. If mysqld refuses to start after\n" "InnoDB: this, you may be able to resolve the problem by moving the binlog\n" "InnoDB: files to a safe place, and deleting all binlog files and the binlog\n" "InnoDB: .index file from the datadir.\n", ut_dulint_get_high(trx->id), ut_dulint_get_low(trx->id)); /* trx->conc_state = TRX_PREPARED; */ trx->conc_state = TRX_PREPARED; TRX_ACTIVE; } else { trx->conc_state = TRX_COMMITTED_IN_MEMORY; Loading Loading
innobase/trx/trx0trx.c +29 −5 Original line number Diff line number Diff line Loading @@ -434,7 +434,19 @@ trx_lists_init_at_db_start(void) commit or abort decision from MySQL */ if (undo->state == TRX_UNDO_PREPARED) { trx->conc_state = TRX_PREPARED; fprintf(stderr, "InnoDB: Transaction %lu %lu was in the XA prepared state. We change it to\n" "InnoDB: the 'active' state, so that InnoDB's true-and-tested crash\n" "InnoDB: recovery will roll it back. If mysqld refuses to start after\n" "InnoDB: this, you may be able to resolve the problem by moving the binlog\n" "InnoDB: files to a safe place, and deleting all binlog files and the binlog\n" "InnoDB: .index file from the datadir.\n", ut_dulint_get_high(trx->id), ut_dulint_get_low(trx->id)); /* trx->conc_state = TRX_PREPARED; */ trx->conc_state = TRX_ACTIVE; } else { trx->conc_state = TRX_COMMITTED_IN_MEMORY; Loading Loading @@ -490,8 +502,20 @@ trx_lists_init_at_db_start(void) commit or abort decision from MySQL */ if (undo->state == TRX_UNDO_PREPARED) { fprintf(stderr, "InnoDB: Transaction %lu %lu was in the XA prepared state. We change it to\n" "InnoDB: the 'active' state, so that InnoDB's true-and-tested crash\n" "InnoDB: recovery will roll it back. If mysqld refuses to start after\n" "InnoDB: this, you may be able to resolve the problem by moving the binlog\n" "InnoDB: files to a safe place, and deleting all binlog files and the binlog\n" "InnoDB: .index file from the datadir.\n", ut_dulint_get_high(trx->id), ut_dulint_get_low(trx->id)); /* trx->conc_state = TRX_PREPARED; */ trx->conc_state = TRX_PREPARED; TRX_ACTIVE; } else { trx->conc_state = TRX_COMMITTED_IN_MEMORY; Loading