Commit 59554966 authored by unknown's avatar unknown
Browse files

Fixed a bug on InnoDB X/Open XA prepare.

parent acaa20e2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -537,7 +537,7 @@ trx_undo_header_create(
	/* If X/Open XID exits in the log header we store a
	flag of it in upper byte of dict operation flag. */

	if (xid != NULL ||  xid->formatID != -1) {
	if (xid != NULL && xid->formatID != -1) {
		mach_write_to_1(log_hdr + TRX_UNDO_XID_EXISTS, TRUE);
	} else {
		mach_write_to_1(log_hdr + TRX_UNDO_XID_EXISTS, FALSE);