mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Support for replaying prepared XA transactions
This patch implments replaying for prepared XA transactions. Replay may happen in the following cases: 1) The transaction is BF aborted in prepared state and is idle. In that case, the transaction is handed over to rollbacker for replay. 2) The transaction is BF aborted while executing the commit (i.e. before or after successful certification). In which case the transaction replays itself from fragment storage. 3) The transaction is BF aborted while certifying its commit fragment. This case is handled like replay for streaming transactions, where the provider is directly involved and re-delivers the last fragment.
This commit is contained in:
@ -102,8 +102,15 @@ namespace wsrep
|
||||
|
||||
void will_replay() WSREP_OVERRIDE { will_replay_called_ = true; }
|
||||
|
||||
void signal_replayed() WSREP_OVERRIDE { }
|
||||
|
||||
enum wsrep::provider::status replay() WSREP_OVERRIDE;
|
||||
|
||||
enum wsrep::provider::status replay_unordered() WSREP_OVERRIDE
|
||||
{
|
||||
return wsrep::provider::success;
|
||||
}
|
||||
|
||||
void wait_for_replayers(
|
||||
wsrep::unique_lock<wsrep::mutex>& lock)
|
||||
WSREP_OVERRIDE
|
||||
@ -153,6 +160,21 @@ namespace wsrep
|
||||
void store_globals() WSREP_OVERRIDE { }
|
||||
void reset_globals() WSREP_OVERRIDE { }
|
||||
|
||||
enum wsrep::provider::status commit_by_xid() WSREP_OVERRIDE
|
||||
{
|
||||
return wsrep::provider::success;
|
||||
}
|
||||
|
||||
bool is_explicit_xa() WSREP_OVERRIDE
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool is_xa_rollback() WSREP_OVERRIDE
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void debug_sync(const char* sync_point) WSREP_OVERRIDE
|
||||
{
|
||||
if (sync_point_enabled_ == sync_point)
|
||||
|
Reference in New Issue
Block a user