mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-06-11 16:48:11 +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:
@ -60,11 +60,33 @@ namespace db
|
||||
int remove_fragments() override { return 0; }
|
||||
int bf_rollback() override;
|
||||
void will_replay() override { }
|
||||
void signal_replayed() override { }
|
||||
void wait_for_replayers(wsrep::unique_lock<wsrep::mutex>&) override { }
|
||||
enum wsrep::provider::status replay()
|
||||
override;
|
||||
|
||||
enum wsrep::provider::status replay_unordered() override
|
||||
{
|
||||
return wsrep::provider::success;
|
||||
}
|
||||
|
||||
void emergency_shutdown() override { ::abort(); }
|
||||
|
||||
enum wsrep::provider::status commit_by_xid() override
|
||||
{
|
||||
return wsrep::provider::success;
|
||||
}
|
||||
|
||||
bool is_explicit_xa() override
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool is_xa_rollback() override
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void debug_sync(const char*) override { }
|
||||
void debug_crash(const char*) override { }
|
||||
private:
|
||||
|
Reference in New Issue
Block a user