1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +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:
Teemu Ollakka
2018-07-05 12:45:22 +03:00
parent fcefe9f03b
commit d80a69fe90
8 changed files with 61 additions and 59 deletions

View File

@ -6,6 +6,7 @@
#define WSREP_MOCK_SERVER_CONTEXT_HPP
#include "wsrep/server_state.hpp"
#include "wsrep/server_service.hpp"
#include "mock_client_state.hpp"
#include "mock_high_priority_service.hpp"
#include "mock_provider.hpp"
@ -84,7 +85,9 @@ namespace wsrep
{
}
void log_view(const wsrep::view&) { }
void log_state_change(enum wsrep::server_state::state,
enum wsrep::server_state::state)
{ }
bool sst_before_init() const WSREP_OVERRIDE
{ return sst_before_init_; }
std::string sst_request() WSREP_OVERRIDE { return ""; }