mariadb/storage
Teemu Ollakka dd74b94823 MDEV-15505 Fix wsrep XID seqno byte order
The problem is that the seqno part of wsrep XID is always
stored in host byte order. This may cause issues when a physical
backup is restored on a host with different architecture, the
seqno part with XID may have incorrect value.

In order to fix this, wsrep XID seqno is always written into
XID data buffer in little endian byte order using int8store()
and read from data buffer using sint8korr(). For backwards
compatibility the seqno is read from TRX_SYS page in host
byte order during upgrade.

This patch implements byte ordering in wsrep_xid_init(),
wsrep_xid_seqno(), and exposes functions to read wsrep
XID uuid and seqno in wsrep_service_st. Backwards compatibility
for upgrade is provided in trx_rseg_init_wsrep_xid().
2018-03-12 14:46:20 +02:00
..
archive MDEV-15091 : Windows, 64bit: reenable and fix warning C4267 (conversion from 'size_t' to 'type', possible loss of data) 2018-02-06 12:55:58 +00:00
blackhole Added "const" to new data for handler::update_row() 2017-04-18 12:23:53 +03:00
cassandra Added name to MEM_ROOT for esier debugging 2018-02-02 11:08:36 +02:00
connect Merge branch 'bb-10.2-ext' into 10.3 2018-02-23 08:43:34 +01:00
csv Added name to MEM_ROOT for esier debugging 2018-02-02 11:08:36 +02:00
example Changing field::field_name and Item::name to LEX_CSTRING 2017-04-23 22:35:46 +03:00
federated Make possible to use clang on Windows (clang-cl) 2018-02-20 21:17:36 +00:00
federatedx Merge bb-10.2-ext into 10.3 2018-02-15 10:22:03 +02:00
heap Merge branch 'bb-10.2-ext' into 10.3 2018-02-23 08:43:34 +01:00
innobase MDEV-15505 Fix wsrep XID seqno byte order 2018-03-12 14:46:20 +02:00
maria MDEV-13749: Server crashes in _ma_unique_hash / JOIN_CACHE::generate_full_extensions on INTERSECT 2018-03-01 16:28:31 +01:00
mroonga Merge bb-10.2-ext into 10.3 2018-02-19 11:37:29 +02:00
myisam Adjust test results to reflect the new system table 2018-02-24 00:50:58 +01:00
myisammrg Adjust test results to reflect the new system table 2018-02-24 00:50:58 +01:00
oqgraph Merge remote-tracking branch 'origin/bb-10.2-ext' into 10.3 2018-02-04 18:40:06 +04:00
perfschema MDEV-15091 : Windows, 64bit: reenable and fix warning C4267 (conversion from 'size_t' to 'type', possible loss of data) 2018-02-06 12:55:58 +00:00
rocksdb Adjust test results to reflect the new system table 2018-02-24 00:50:58 +01:00
sequence Changing field::field_name and Item::name to LEX_CSTRING 2017-04-23 22:35:46 +03:00
sphinx Merge bb-10.2-ext into 10.3 2018-02-15 10:22:03 +02:00
spider Merge branch 'bb-10.2-ext' into 10.3 2018-02-23 08:43:34 +01:00
test_sql_discovery Merge bb-10.2-ext into 10.3 2017-09-21 08:12:19 +03:00
tokudb Merge branch 'bb-10.2-ext' into 10.3 2018-02-23 08:43:34 +01:00