1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-15 15:41:49 +03:00

Refactored server_service out of server_state.

This commit is contained in:
Teemu Ollakka
2018-06-18 17:45:24 +03:00
parent ef5751943d
commit cf231bdf2d
14 changed files with 142 additions and 89 deletions

View File

@ -13,13 +13,15 @@
namespace wsrep
{
class mock_server_state : public wsrep::server_state
class mock_server_state
: public wsrep::server_state
, public wsrep::server_service
{
public:
mock_server_state(const std::string& name,
const std::string& id,
enum wsrep::server_state::rollback_mode rollback_mode)
: wsrep::server_state(mutex_, cond_,
: wsrep::server_state(mutex_, cond_, *this,
name, id, "", "./", rollback_mode)
, mutex_()
, cond_()