MXS-2196: Rename dcb_role_t to DCB::Role

This commit is contained in:
Markus Mäkelä
2018-12-04 12:02:10 +02:00
parent 0b9241913c
commit 77477d9648
21 changed files with 93 additions and 94 deletions

View File

@ -363,7 +363,7 @@ void RRRouter::handle_error(RRRouterSession* rses,
/* If the erroneous dcb is a client handler, close it. Setting succp to
* false will cause the entire attached session to be closed.
*/
if (problem_dcb->dcb_role == DCB_ROLE_CLIENT_HANDLER)
if (problem_dcb->role == DCB::Role::CLIENT)
{
dcb_close(problem_dcb);
*succp = false;
@ -391,7 +391,7 @@ void RRRouter::handle_error(RRRouterSession* rses,
case ERRACT_NEW_CONNECTION:
{
/* React to a failed backend */
if (problem_dcb->dcb_role == DCB_ROLE_BACKEND_HANDLER)
if (problem_dcb->role == DCB::Role::BACKEND)
{
if (problem_dcb == rses->m_write_dcb)
{