1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Pass high_priority_service instead of void ptr for provider methods.

This commit is contained in:
Teemu Ollakka
2018-07-03 07:48:35 +03:00
parent 004244d203
commit 3632e7823c
9 changed files with 38 additions and 33 deletions

View File

@ -554,7 +554,8 @@ int wsrep::wsrep_provider_v26::resume()
}
enum wsrep::provider::status
wsrep::wsrep_provider_v26::run_applier(void *applier_ctx)
wsrep::wsrep_provider_v26::run_applier(
wsrep::high_priority_service *applier_ctx)
{
return map_return_value(wsrep_->recv(wsrep_, applier_ctx));
}
@ -649,11 +650,11 @@ int wsrep::wsrep_provider_v26::release(wsrep::ws_handle& ws_handle)
enum wsrep::provider::status
wsrep::wsrep_provider_v26::replay(const wsrep::ws_handle& ws_handle,
void* applier_ctx)
wsrep::high_priority_service* reply_service)
{
const_ws_handle mwsh(ws_handle);
return map_return_value(
wsrep_->replay_trx(wsrep_, mwsh.native(), applier_ctx));
wsrep_->replay_trx(wsrep_, mwsh.native(), reply_service));
}
enum wsrep::provider::status

View File

@ -29,7 +29,7 @@ namespace wsrep
wsrep::seqno pause();
int resume();
enum wsrep::provider::status run_applier(void*);
enum wsrep::provider::status run_applier(wsrep::high_priority_service*);
int start_transaction(wsrep::ws_handle&) { return 0; }
int append_key(wsrep::ws_handle&, const wsrep::key&);
enum wsrep::provider::status
@ -49,7 +49,8 @@ namespace wsrep
int commit_order_leave(const wsrep::ws_handle&,
const wsrep::ws_meta&);
int release(wsrep::ws_handle&);
enum wsrep::provider::status replay(const wsrep::ws_handle&, void*);
enum wsrep::provider::status replay(const wsrep::ws_handle&,
wsrep::high_priority_service*);
enum wsrep::provider::status enter_toi(wsrep::client_id,
const wsrep::key_array&,
const wsrep::const_buffer&,