1
0
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:
Teemu Ollakka
2019-02-25 09:27:17 +02:00
parent c61811ed70
commit badf53a28d
6 changed files with 54 additions and 16 deletions

View File

@ -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(

View File

@ -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(