Removed references to SERVER_IS_JOINED status from readwritesplit.c because rwsplit for Galera doesn't use that status at all.
This commit is contained in:
@ -815,8 +815,7 @@ static bool get_dcb(
|
|||||||
BACKEND* b = backend_ref[i].bref_backend;
|
BACKEND* b = backend_ref[i].bref_backend;
|
||||||
|
|
||||||
if (backend_ref[i].bref_dcb != NULL &&
|
if (backend_ref[i].bref_dcb != NULL &&
|
||||||
(SERVER_IS_MASTER(b->backend_server) ||
|
(SERVER_IS_MASTER(b->backend_server)))
|
||||||
SERVER_IS_JOINED(b->backend_server)))
|
|
||||||
{
|
{
|
||||||
*p_dcb = backend_ref[i].bref_dcb;
|
*p_dcb = backend_ref[i].bref_dcb;
|
||||||
succp = true;
|
succp = true;
|
||||||
@ -1554,8 +1553,7 @@ static bool select_connect_backend_servers(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!master_connected &&
|
else if (!master_connected &&
|
||||||
(SERVER_IS_MASTER(b->backend_server) ||
|
(SERVER_IS_MASTER(b->backend_server)))
|
||||||
SERVER_IS_JOINED(b->backend_server)))
|
|
||||||
{
|
{
|
||||||
master_found = true;
|
master_found = true;
|
||||||
|
|
||||||
@ -1656,8 +1654,7 @@ static bool select_connect_backend_servers(
|
|||||||
"Selected %s in \t%s:%d",
|
"Selected %s in \t%s:%d",
|
||||||
(btype == BE_MASTER ? "master" :
|
(btype == BE_MASTER ? "master" :
|
||||||
(btype == BE_SLAVE ? "slave" :
|
(btype == BE_SLAVE ? "slave" :
|
||||||
(btype == BE_JOINED ? "galera node" :
|
"unknown node type")),
|
||||||
"unknown node type"))),
|
|
||||||
b->backend_server->name,
|
b->backend_server->name,
|
||||||
b->backend_server->port)));
|
b->backend_server->port)));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user