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:
@ -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_;
|
||||
|
Reference in New Issue
Block a user