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:
parent
7e1e63aef6
commit
3df5e6f137
@ -9217,6 +9217,22 @@ static bool blr_apply_changes(ROUTER_INSTANCE *router,
|
||||
|
||||
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
|
||||
{
|
||||
@ -9234,6 +9250,13 @@ static bool blr_apply_changes(ROUTER_INSTANCE *router,
|
||||
ret = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (ret)
|
||||
{
|
||||
MXS_INFO("%s: New MASTER_LOG_POS is [%lu]",
|
||||
router->service->name,
|
||||
router->current_pos);
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user