mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-30 07:23:07 +03:00
Return error code from high_priority_service::adopt_transaction()
Adopt transaction may need to start a new transaction on DBMS side, allow returning an error if the transaction start fails.
This commit is contained in:
@ -26,10 +26,11 @@ int wsrep::mock_high_priority_service::start_transaction(
|
||||
return client_state_->start_transaction(ws_handle, ws_meta);
|
||||
}
|
||||
|
||||
void wsrep::mock_high_priority_service::adopt_transaction(
|
||||
int wsrep::mock_high_priority_service::adopt_transaction(
|
||||
const wsrep::transaction& transaction)
|
||||
{
|
||||
client_state_->adopt_transaction(transaction);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int wsrep::mock_high_priority_service::apply_write_set(
|
||||
|
@ -45,7 +45,7 @@ namespace wsrep
|
||||
|
||||
const wsrep::transaction& transaction() const WSREP_OVERRIDE
|
||||
{ return client_state_->transaction(); }
|
||||
void adopt_transaction(const wsrep::transaction&) WSREP_OVERRIDE;
|
||||
int adopt_transaction(const wsrep::transaction&) WSREP_OVERRIDE;
|
||||
int apply_write_set(const wsrep::ws_meta&,
|
||||
const wsrep::const_buffer&) WSREP_OVERRIDE;
|
||||
int append_fragment_and_commit(
|
||||
|
Reference in New Issue
Block a user