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

Pass pointer to high priority service as a parameter for log_view()

The pointer will pass applier context to log_view(), where it
can be used for stable storage access.
This commit is contained in:
Teemu Ollakka
2018-07-15 19:00:10 +03:00
parent 86472ee420
commit 21ae2c849e
5 changed files with 20 additions and 6 deletions

View File

@ -104,9 +104,16 @@ namespace wsrep
const wsrep::ws_meta& ws_meta) = 0;
/**
* Log a cluster view change event.
* Log a cluster view change event. The method takes
* as an argument a pointer to high priority service associated
* to an applier thread if one is available.
*
* @param high_priority_service Pointer to high priority service
* @param view Reference to view object
*/
virtual void log_view(const wsrep::view&) = 0;
virtual void log_view(
wsrep::high_priority_service* high_priority_service,
const wsrep::view& view) = 0;
/**
* Log a state change event.