1
0
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:
Daniele Sciascia
2020-01-07 10:55:11 +01:00
parent 76f7249b8d
commit a17b65a25f
5 changed files with 33 additions and 2 deletions

View File

@ -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.
*