mirror of
https://github.com/codership/wsrep-lib.git
synced 2025-06-30 18:01:53 +03:00
Defined log_state_change() interface in server_service.
The interface method can be used to notify the DBMS implementation about state changes in well defined order. The call will be done under server_state mutex protection.
This commit is contained in:
@ -75,6 +75,14 @@ void db::server_service::log_view(const wsrep::view&)
|
||||
wsrep::log_info() << "View";
|
||||
}
|
||||
|
||||
void db::server_service::log_state_change(
|
||||
enum wsrep::server_state::state prev_state,
|
||||
enum wsrep::server_state::state current_state)
|
||||
{
|
||||
|
||||
wsrep::log_info() << "State changed "
|
||||
<< prev_state << " -> " << current_state;
|
||||
}
|
||||
int db::server_service::wait_committing_transactions(int)
|
||||
{
|
||||
throw wsrep::not_implemented_error();
|
||||
|
Reference in New Issue
Block a user