MXS-2220 Move most remaining functions inside class

Most of the ones still remaining outside are special cases.
Also, removed locking from status manipulation functions as it
has not been required for quite some time.
This commit is contained in:
Esa Korhonen
2019-01-07 16:02:05 +02:00
parent d5c78eb31f
commit 1c647f3753
13 changed files with 145 additions and 186 deletions

View File

@ -116,7 +116,7 @@ bool connect_backend_servers(SSRBackendList& backends, MXS_SESSION* session)
b->server->stats.n_current,
b->server->address,
b->server->port,
mxs::server_status(b->server).c_str());
b->server->status_string().c_str());
}
}
/**
@ -170,7 +170,7 @@ bool connect_backend_servers(SSRBackendList& backends, MXS_SESSION* session)
if ((*it)->in_use())
{
MXS_INFO("Connected %s in \t%s:%d",
mxs::server_status(b->server).c_str(),
b->server->status_string().c_str(),
b->server->address,
b->server->port);
}