1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-30 07:23:07 +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

@ -20,7 +20,7 @@
namespace wsrep
{
class server_state;
class high_priority_service;
class stid
{
public:
@ -237,7 +237,8 @@ namespace wsrep
virtual int resume() = 0;
// Applier interface
virtual enum status run_applier(void* applier_ctx) = 0;
virtual enum status run_applier(wsrep::high_priority_service*
applier_ctx) = 0;
// Write set replication
// TODO: Rename to assing_read_view()
virtual int start_transaction(wsrep::ws_handle&) = 0;
@ -276,7 +277,8 @@ namespace wsrep
* @return Zero in case of success, non-zero on failure.
*/
virtual enum status replay(
const wsrep::ws_handle& ws_handle, void* applier_ctx) = 0;
const wsrep::ws_handle& ws_handle,
wsrep::high_priority_service* applier_ctx) = 0;
/**
* Enter total order isolation critical section