1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Initial support for XA

Force fragment replication when XA transaction is prepared, with
prepare fragment. Commit fragment happens in before_commit().
Adjusted fragment removal, which cannot happen in atomically with the
executing transaction.
This commit is contained in:
Daniele Sciascia
2019-02-04 08:45:00 +01:00
parent 5c27d6dafa
commit 9c9323e2a5
4 changed files with 122 additions and 26 deletions

View File

@ -34,13 +34,14 @@
namespace wsrep
{
class transaction;
class client_service
{
public:
client_service() { }
virtual ~client_service() { }
virtual const char* query() const = 0;
/**
* Return true if the current transaction has been interrupted
* by the DBMS. The lock which is passed to interrupted call
@ -72,6 +73,11 @@ namespace wsrep
*/
virtual void cleanup_transaction() = 0;
/**
* Return true if the current transactions is XA
*/
virtual bool is_xa() const = 0;
//
// Streaming
//