diff options
author | Teemu Ollakka <teemu.ollakka@galeracluster.com> | 2019-01-24 16:31:33 +0200 |
---|---|---|
committer | Teemu Ollakka <teemu.ollakka@galeracluster.com> | 2019-01-25 16:19:20 +0200 |
commit | 040b840de7bcd32b0236531a7aec95b11341cef3 (patch) | |
tree | 27dca70bcb2d2a7c67b93a10cdee4ce788a101b4 /sql/wsrep_xid.h | |
parent | ce28fa53032dd7c233ed4875514bf85eafec0bc4 (diff) | |
download | mariadb-git-040b840de7bcd32b0236531a7aec95b11341cef3.tar.gz |
MDEV-15740 Backport wsrep recovery fixes from 10.4.
Clear wsrep XID in innobase_rollback_by_xid() for recovered wsrep
transaction in order to avoid resetting XID storage when rolling back
wsrep transaction during recovery.
Sort wsrep XIDs read from storage engine in ascending order and
erify that the range is continuous during crash recovery. If binlog is off,
commit all recovered transactions for continuous seqno range. This is safe
because all transactions with wsrep XID have been certified and must be
committed in the cluster. On the other hand if binlog is on, respect binlog
as a transaction coordinator in order to avoid missing transactions in binlog
that have been committed into storage engine .
Diffstat (limited to 'sql/wsrep_xid.h')
-rw-r--r-- | sql/wsrep_xid.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/wsrep_xid.h b/sql/wsrep_xid.h index 5b33a904de1..01b18506708 100644 --- a/sql/wsrep_xid.h +++ b/sql/wsrep_xid.h @@ -32,5 +32,7 @@ bool wsrep_get_SE_checkpoint(wsrep_uuid_t&, wsrep_seqno_t&); //void wsrep_set_SE_checkpoint(XID&); /* uncomment if needed */ bool wsrep_set_SE_checkpoint(const wsrep_uuid_t&, wsrep_seqno_t); +void wsrep_sort_xid_array(XID *array, int len); + #endif /* WITH_WSREP */ #endif /* WSREP_UTILS_H */ |