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

Minimize client_service interface for XA

Remove methods `is_xa()`, `is_xa_prepare()`, and `xid()` from
client_service interface. Instead, transactions are explicitly
assigned their xid, through at start of XA.
This commit is contained in:
Daniele Sciascia
2019-07-30 11:25:38 +02:00
parent 052247144f
commit 5d18ce3e75
7 changed files with 85 additions and 126 deletions

View File

@ -62,8 +62,6 @@ namespace wsrep
: wsrep::client_service()
, is_autocommit_()
, do_2pc_()
, is_xa_()
, is_xa_prepare_()
// , fail_next_applying_()
// , fail_next_toi_()
, bf_abort_during_wait_()
@ -131,21 +129,6 @@ namespace wsrep
void cleanup_transaction() WSREP_OVERRIDE { }
bool is_xa() const WSREP_OVERRIDE
{
return is_xa_;
}
bool is_xa_prepare() const WSREP_OVERRIDE
{
return is_xa_prepare_;
}
std::string xid() const WSREP_OVERRIDE
{
return "";
}
size_t bytes_generated() const WSREP_OVERRIDE
{
return bytes_generated_;
@ -197,8 +180,6 @@ namespace wsrep
//
bool is_autocommit_;
bool do_2pc_;
bool is_xa_;
bool is_xa_prepare_;
// bool fail_next_applying_;
// bool fail_next_toi_;
bool bf_abort_during_wait_;