mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-30 07:23:07 +03:00
Introduced adopt_transaction() for storage_service interface
A SR transaction must be adopted by a storage service instance running in background rollbacker thread while it is aborting a SR transaction.
This commit is contained in:
@ -19,6 +19,12 @@ wsrep::storage_service* db::server_service::storage_service(
|
||||
return new db::storage_service();
|
||||
}
|
||||
|
||||
wsrep::storage_service* db::server_service::storage_service(
|
||||
wsrep::high_priority_service&)
|
||||
{
|
||||
return new db::storage_service();
|
||||
}
|
||||
|
||||
void db::server_service::release_storage_service(
|
||||
wsrep::storage_service* storage_service)
|
||||
{
|
||||
|
@ -16,6 +16,8 @@ namespace db
|
||||
public:
|
||||
server_service(db::server& server);
|
||||
wsrep::storage_service* storage_service(wsrep::client_service&) override;
|
||||
wsrep::storage_service* storage_service(wsrep::high_priority_service&) override;
|
||||
|
||||
void release_storage_service(wsrep::storage_service*) override;
|
||||
wsrep::high_priority_service* streaming_applier_service(wsrep::client_service&) override;
|
||||
wsrep::high_priority_service* streaming_applier_service(wsrep::high_priority_service&) override;
|
||||
|
@ -14,6 +14,8 @@ namespace db
|
||||
{
|
||||
int start_transaction(const wsrep::ws_handle&) override
|
||||
{ throw wsrep::not_implemented_error(); }
|
||||
void adopt_transaction(const wsrep::transaction&) override
|
||||
{ throw wsrep::not_implemented_error(); }
|
||||
int append_fragment(const wsrep::id&,
|
||||
wsrep::transaction_id,
|
||||
int,
|
||||
|
Reference in New Issue
Block a user