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

@ -144,6 +144,12 @@ wsrep::gtid db::server_service::get_position(wsrep::client_service&)
return server_.storage_engine().get_position();
}
void db::server_service::set_position(wsrep::client_service&,
const wsrep::gtid& gtid)
{
return server_.storage_engine().store_position(gtid);
}
void db::server_service::log_state_change(
enum wsrep::server_state::state prev_state,
enum wsrep::server_state::state current_state)