mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Execution context switching for high priority service.
This commit is contained in:
@ -63,7 +63,21 @@ namespace wsrep
|
||||
delete client_state;
|
||||
}
|
||||
|
||||
wsrep::high_priority_service* streaming_applier_service()
|
||||
wsrep::high_priority_service* streaming_applier_service(
|
||||
wsrep::client_service&)
|
||||
{
|
||||
wsrep::mock_client* cs(new wsrep::mock_client(
|
||||
*this, ++last_client_id_,
|
||||
wsrep::client_state::m_high_priority));
|
||||
wsrep::mock_high_priority_service* ret(
|
||||
new wsrep::mock_high_priority_service(*this, cs, false));
|
||||
cs->open(cs->id());
|
||||
cs->before_command();
|
||||
return ret;
|
||||
}
|
||||
|
||||
wsrep::high_priority_service* streaming_applier_service(
|
||||
wsrep::high_priority_service&)
|
||||
{
|
||||
wsrep::mock_client* cs(new wsrep::mock_client(
|
||||
*this, ++last_client_id_,
|
||||
|
Reference in New Issue
Block a user