summaryrefslogtreecommitdiff
path: root/extra/mariabackup/wsrep.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.2 into 10.3Marko Mäkelä2019-05-141-2/+2
|\
| * Merge 10.1 into 10.2Marko Mäkelä2019-05-131-2/+2
| |\
| | * Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-111-2/+2
| | |
* | | Merge 10.2 into 10.3Marko Mäkelä2019-01-171-4/+3
|\ \ \ | |/ /
| * | mariabackup : use die() macro for fatal exit with error message.Vladislav Vaintroub2019-01-161-4/+3
| | |
* | | Merge 10.2 into 10.3Marko Mäkelä2018-08-031-2/+1
|\ \ \ | |/ /
| * | Merge 10.1 into 10.2Marko Mäkelä2018-08-031-2/+1
| |\ \ | | |/
| | * Fix -Wclass-memaccess in WSREP,InnoDB,XtraDBMarko Mäkelä2018-08-031-2/+1
| | |
* | | MDEV-15505 Fixes to compilation without -DWITH_WSREP:BOOL=ONTeemu Ollakka2018-03-211-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed including wsrep_api.h from service_wsrep.h. This caused various kinds of collisions with definitions when wsrep is not supposed to be built in. Defined functions wsrep_xid_seqno() and wsrep_xid_uuid() in wsrep_dummy.cc. Replaced wsrep_seqno_t with long long where wsrep_api.h is not included. Removed wsrep_xid_seqno() macro from wsrep_mysqld.h and made wsrep code using wsrep_xid_seqno() in handler.cc to be compiled in only if WITH_WSREP is ON. Included wsrep_api.h for mariabackup if WITH_WSREP is ON.
* | | MDEV-15505 New wsrep XID format for backwards compatibilityTeemu Ollakka2018-03-121-103/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A new wsrep XID format was added to keep the XID implementation backwards compatible. Original version always reads XID seqno part in host byte order, the new version in little endian byte order. Wsrep XID will always be written in the new format. Included wsrep_api.h from service_wsrep.h for wsrep type definitions. Removed redundant wsrep XID code from mariabackup and included service_wsrep.h in order to use
* | | MDEV-15505 Fix wsrep XID seqno byte orderTeemu Ollakka2018-03-121-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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().
* | | MDEV-15158 On commit, do not write to the TRX_SYS pageMarko Mäkelä2018-02-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is based on a prototype by Thirunarayanan Balathandayuthapani <thiru@mariadb.com>. Binlog and Galera write-set replication information was written into TRX_SYS page on each commit. Instead of writing to the TRX_SYS during normal operation, InnoDB can make use of rollback segment header pages, which are already being written to during a commit. The following list of fields in rollback segment header page are added: TRX_RSEG_BINLOG_OFFSET TRX_RSEG_BINLOG_NAME (NUL-terminated; empty name = not present) TRX_RSEG_WSREP_XID_FORMAT (0=not present; 1=present) TRX_RSEG_WSREP_XID_GTRID TRX_RSEG_WSREP_XID_BQUAL TRX_RSEG_WSREP_XID_DATA trx_sys_t: Introduce the fields recovered_binlog_filename, recovered_binlog_offset, recovered_wsrep_xid. To facilitate upgrade from older mysql or mariaDB versions, we will read the information in TRX_SYS page. It will be overridden by the information that we find in rollback segment header pages. Mariabackup --prepare will read the metadata from the rollback segment header pages via trx_rseg_array_init(). It will still not read any undo log pages or recover any transactions.
* | | Merge remote-tracking branch 'origin/bb-10.2-ext' into 10.3Alexander Barkov2017-10-301-3/+3
|\ \ \ | |/ / | | | | | | TODO: enable MDEV-13049 optimization for 10.3
| * | Merge 10.1 into 10.2Marko Mäkelä2017-10-251-3/+3
| |\ \ | | |/
| | * MDEV-13496 Use "mariabackup" rather than "xtrabackup" in console outputVladislav Vaintroub2017-10-231-3/+3
| | |
| | * Fix compilation in mariabackupVladislav Vaintroub2017-09-161-0/+1
| |/ | | | | | | | | Compilation got confused about 2 wsrep.h headers in include path Rename backup's wsrep.h to backup_wsrep.h to fixO
* | Fix compilation errorsSergei Golubchik2017-08-241-1/+1
|/
* MDEV-9566 Port Percona Xtrabackup to MariaDB as mariabackupVladislav Vaintroub2017-04-271-3/+4
| | | | | | - Modify backup code to work with MariaDB's 10.1 xtradb - Remove crypt encryption, version_check.pl, "compact backup" - Add encryption plugin
* MDEV-9566 Add Percona Xtrabackup 2.3.7Vladislav Vaintroub2017-04-271-0/+219