mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-07-28 20:02:00 +03:00
Set server position after local certification failure
After a local certification failure, commit order is released without the setting the current position in DBMS. Which results in diverging positions between provider and DBMS, if clean shutdown happens right after local certification failure. This patch add method set_position() to server_service class. So that wsrep-lib can instruct DBMS to set the current position after local certification failure releases commit order.
This commit is contained in:
@ -180,6 +180,18 @@ namespace wsrep
|
||||
*/
|
||||
virtual wsrep::gtid get_position(
|
||||
wsrep::client_service& client_service) = 0;
|
||||
|
||||
/**
|
||||
* Set the current replication position of the server
|
||||
* storage.
|
||||
*
|
||||
* @param client_service Reference to client_service
|
||||
* @param gtid Reference to position to be set
|
||||
*/
|
||||
virtual void set_position(
|
||||
wsrep::client_service& client_service,
|
||||
const wsrep::gtid& gtid) = 0;
|
||||
|
||||
/**
|
||||
* Log a state change event.
|
||||
*
|
||||
|
Reference in New Issue
Block a user