MXS-2220 Move server_is_active inside the class
This commit is contained in:
@ -85,7 +85,7 @@ HintRouterSession* HintRouter::newSession(MXS_SESSION* pSession)
|
||||
/* Go through the server references, find master and slaves */
|
||||
for (SERVER_REF* pSref = pSession->service->dbref; pSref; pSref = pSref->next)
|
||||
{
|
||||
if (SERVER_REF_IS_ACTIVE(pSref))
|
||||
if (server_ref_is_active(pSref))
|
||||
{
|
||||
if (server_is_master(pSref->server))
|
||||
{
|
||||
|
@ -315,7 +315,7 @@ static MXS_ROUTER_SESSION* newSession(MXS_ROUTER* instance, MXS_SESSION* session
|
||||
*/
|
||||
for (SERVER_REF* ref = inst->service->dbref; ref; ref = ref->next)
|
||||
{
|
||||
if (!SERVER_REF_IS_ACTIVE(ref) || server_is_in_maint(ref->server))
|
||||
if (!server_ref_is_active(ref) || server_is_in_maint(ref->server))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user