Commit 4107af88 authored by Seppo Jaakola's avatar Seppo Jaakola

References: lp:1182441 - merged fix from revision:...

References: lp:1182441 - merged fix from revision: http://bazaar.launchpad.net/~percona-core/percona-xtradb-cluster/release-5.5.31/revision/416
parent b0d30e23
...@@ -566,6 +566,22 @@ We must remember this limit in order to keep file compatibility. */ ...@@ -566,6 +566,22 @@ We must remember this limit in order to keep file compatibility. */
//#if UNIV_PAGE_SIZE < 4096 //#if UNIV_PAGE_SIZE < 4096
//# error "UNIV_PAGE_SIZE < 4096" //# error "UNIV_PAGE_SIZE < 4096"
//#endif //#endif
/* The offset to WSREP XID headers */
#ifdef WITH_WSREP
#define TRX_SYS_WSREP_XID_INFO (UNIV_PAGE_SIZE - 3500)
#define TRX_SYS_WSREP_XID_MAGIC_N_FLD 0
#define TRX_SYS_WSREP_XID_MAGIC_N 0x77737265
/* XID field: formatID, gtrid_len, bqual_len, xid_data */
#define TRX_SYS_WSREP_XID_LEN (4 + 4 + 4 + XIDDATASIZE)
#define TRX_SYS_WSREP_XID_FORMAT 4
#define TRX_SYS_WSREP_XID_GTRID_LEN 8
#define TRX_SYS_WSREP_XID_BQUAL_LEN 12
#define TRX_SYS_WSREP_XID_DATA 16
#endif /* WITH_WSREP*/
/** The offset of the MySQL replication info in the trx system header; /** The offset of the MySQL replication info in the trx system header;
this contains the same fields as TRX_SYS_MYSQL_LOG_INFO below. These are this contains the same fields as TRX_SYS_MYSQL_LOG_INFO below. These are
written at prepare time and are the main copy. */ written at prepare time and are the main copy. */
...@@ -589,22 +605,6 @@ crash recovery rollbacks a PREPAREd transaction, they are copied back. */ ...@@ -589,22 +605,6 @@ crash recovery rollbacks a PREPAREd transaction, they are copied back. */
within that file */ within that file */
#define TRX_SYS_MYSQL_LOG_NAME 12 /*!< MySQL log file name */ #define TRX_SYS_MYSQL_LOG_NAME 12 /*!< MySQL log file name */
#ifdef WITH_WSREP
/* We hijack TRX_SYS_MYSQL_MASTER_LOG_INFO, it seems to be completely unused
otherwise (see comments for MySQL bug #34058). */
/** */
#define TRX_SYS_WSREP_XID_INFO TRX_SYS_MYSQL_MASTER_LOG_INFO
#define TRX_SYS_WSREP_XID_MAGIC_N_FLD 0
#define TRX_SYS_WSREP_XID_MAGIC_N 0x77737265
/* XID field: formatID, gtrid_len, bqual_len, xid_data */
#define TRX_SYS_WSREP_XID_LEN (4 + 4 + 4 + XIDDATASIZE)
#define TRX_SYS_WSREP_XID_FORMAT 4
#define TRX_SYS_WSREP_XID_GTRID_LEN 8
#define TRX_SYS_WSREP_XID_BQUAL_LEN 12
#define TRX_SYS_WSREP_XID_DATA 16
#endif /* WITH_WSREP*/
/** Doublewrite buffer */ /** Doublewrite buffer */
/* @{ */ /* @{ */
/** The offset of the doublewrite buffer header on the trx system header page */ /** The offset of the doublewrite buffer header on the trx system header page */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment