mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-30 07:23:07 +03:00
Execution context switching for high priority service.
This commit is contained in:
@ -43,6 +43,8 @@ namespace wsrep
|
||||
void after_apply() WSREP_OVERRIDE;
|
||||
void store_globals() WSREP_OVERRIDE { }
|
||||
void reset_globals() WSREP_OVERRIDE { }
|
||||
void switch_execution_context(wsrep::high_priority_service&)
|
||||
WSREP_OVERRIDE { }
|
||||
int log_dummy_write_set(const wsrep::ws_handle&,
|
||||
const wsrep::ws_meta&)
|
||||
WSREP_OVERRIDE { return 0; }
|
||||
|
@ -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