mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Support recovery of XA transactions
* Add method `restore_prepared_transaction` to `client_state` class which restores a transaction state from storage given its xid. * Add method `commit_or_rollback_by_xid` to terminate prepared XA transactions by xid. * Make sure that transactions in prepared state are not rolled back when their master fails/partitions away.
This commit is contained in:
@ -256,12 +256,20 @@ namespace wsrep
|
||||
|
||||
void stop_streaming_applier(
|
||||
const wsrep::id&, const wsrep::transaction_id&);
|
||||
|
||||
/**
|
||||
* Return reference to streaming applier.
|
||||
* Find a streaming applier matching server and transaction ids
|
||||
*/
|
||||
wsrep::high_priority_service* find_streaming_applier(
|
||||
const wsrep::id&,
|
||||
const wsrep::transaction_id&) const;
|
||||
|
||||
/**
|
||||
* Find a streaming applier matching xid
|
||||
*/
|
||||
wsrep::high_priority_service* find_streaming_applier(
|
||||
const std::string& xid) const;
|
||||
|
||||
/**
|
||||
* Load WSRep provider.
|
||||
*
|
||||
|
Reference in New Issue
Block a user