MXS-2220 Use std::string for protocol and authenticator fields
This commit is contained in:
@ -198,7 +198,7 @@ Dcb HintRouter::connect_to_backend(MXS_SESSION* session,
|
||||
{
|
||||
Dcb result(NULL);
|
||||
HR_DEBUG("Connecting to %s.", sref->server->name());
|
||||
DCB* new_connection = dcb_connect(sref->server, session, sref->server->protocol);
|
||||
DCB* new_connection = dcb_connect(sref->server, session, sref->server->protocol().c_str());
|
||||
|
||||
if (new_connection)
|
||||
{
|
||||
|
@ -412,9 +412,7 @@ static MXS_ROUTER_SESSION* newSession(MXS_ROUTER* instance, MXS_SESSION* session
|
||||
client_rses->backend = candidate;
|
||||
|
||||
/** Open the backend connection */
|
||||
client_rses->backend_dcb = dcb_connect(candidate->server,
|
||||
session,
|
||||
candidate->server->protocol);
|
||||
client_rses->backend_dcb = dcb_connect(candidate->server, session, candidate->server->protocol().c_str());
|
||||
|
||||
if (client_rses->backend_dcb == NULL)
|
||||
{
|
||||
|
Reference in New Issue
Block a user