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

@ -289,7 +289,7 @@ namespace
try
{
std::string req(server_state.sst_request());
std::string req(server_state.server_service().sst_request());
*sst_req = ::strdup(req.c_str());
*sst_req_len = strlen(req.c_str());
return WSREP_CB_SUCCESS;
@ -369,7 +369,7 @@ namespace
wsrep::gtid gtid(wsrep::id(req_gtid->uuid.data,
sizeof(req_gtid->uuid.data)),
wsrep::seqno(req_gtid->seqno));
if (server_state.start_sst(req, gtid, bypass))
if (server_state.server_service().start_sst(req, gtid, bypass))
{
return WSREP_CB_FAILURE;
}