Fix CHANGE MASTER TO with binlog server state BLRM_UNCONFIGURED
Fix CHANGE MASTER TO with binlog server state BLRM_UNCONFIGURED
This commit is contained in:
@ -9217,6 +9217,22 @@ static bool blr_apply_changes(ROUTER_INSTANCE *router,
|
|||||||
|
|
||||||
ret = false;
|
ret = false;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* BLRM_UNCONFIGURED state:
|
||||||
|
* - set pos to 4
|
||||||
|
* - set binlog name
|
||||||
|
*/
|
||||||
|
router->current_pos = 4;
|
||||||
|
router->binlog_position = 4;
|
||||||
|
router->current_safe_event = 4;
|
||||||
|
strcpy(router->binlog_name, new_logfile);
|
||||||
|
|
||||||
|
MXS_INFO("%s: New MASTER_LOG_FILE is [%s]",
|
||||||
|
router->service->name,
|
||||||
|
router->binlog_name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -9234,6 +9250,13 @@ static bool blr_apply_changes(ROUTER_INSTANCE *router,
|
|||||||
ret = false;
|
ret = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ret)
|
||||||
|
{
|
||||||
|
MXS_INFO("%s: New MASTER_LOG_POS is [%lu]",
|
||||||
|
router->service->name,
|
||||||
|
router->current_pos);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user