mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-25 21:41:56 +03:00
Add is_query() and is_xa() to dbsim/test client service implementations
This commit is contained in:
@ -33,6 +33,7 @@ namespace db
|
|||||||
public:
|
public:
|
||||||
client_service(db::client& client);
|
client_service(db::client& client);
|
||||||
|
|
||||||
|
std::string query() const override { return ""; }
|
||||||
bool interrupted(wsrep::unique_lock<wsrep::mutex>&)
|
bool interrupted(wsrep::unique_lock<wsrep::mutex>&)
|
||||||
const override
|
const override
|
||||||
{ return false; }
|
{ return false; }
|
||||||
@ -43,6 +44,10 @@ namespace db
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
void cleanup_transaction() override { }
|
void cleanup_transaction() override { }
|
||||||
|
bool is_xa () const override
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
size_t bytes_generated() const override
|
size_t bytes_generated() const override
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -40,7 +40,7 @@ namespace wsrep
|
|||||||
client_service() { }
|
client_service() { }
|
||||||
virtual ~client_service() { }
|
virtual ~client_service() { }
|
||||||
|
|
||||||
virtual const char* query() const = 0;
|
virtual std::string query() const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if the current transaction has been interrupted
|
* Return true if the current transaction has been interrupted
|
||||||
|
@ -76,6 +76,8 @@ namespace wsrep
|
|||||||
, aborts_()
|
, aborts_()
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
std::string query() const WSREP_OVERRIDE { return ""; }
|
||||||
|
|
||||||
int bf_rollback() WSREP_OVERRIDE;
|
int bf_rollback() WSREP_OVERRIDE;
|
||||||
|
|
||||||
bool interrupted(wsrep::unique_lock<wsrep::mutex>&)
|
bool interrupted(wsrep::unique_lock<wsrep::mutex>&)
|
||||||
@ -126,6 +128,12 @@ namespace wsrep
|
|||||||
}
|
}
|
||||||
|
|
||||||
void cleanup_transaction() WSREP_OVERRIDE { }
|
void cleanup_transaction() WSREP_OVERRIDE { }
|
||||||
|
|
||||||
|
bool is_xa() const WSREP_OVERRIDE
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
size_t bytes_generated() const WSREP_OVERRIDE
|
size_t bytes_generated() const WSREP_OVERRIDE
|
||||||
{
|
{
|
||||||
return bytes_generated_;
|
return bytes_generated_;
|
||||||
|
Reference in New Issue
Block a user