Use module parameters in binlogrouter
The binlogrouter accepts all router options also as parameters.
This commit is contained in:
@ -583,15 +583,11 @@ blr_master_response(ROUTER_INSTANCE *router, GWBUF *buf)
|
||||
}
|
||||
|
||||
/* set the master_uuid from master if not set by the option */
|
||||
if (router->set_master_uuid == NULL)
|
||||
if (!router->set_master_uuid)
|
||||
{
|
||||
MXS_FREE(router->master_uuid);
|
||||
router->master_uuid = val;
|
||||
}
|
||||
else
|
||||
{
|
||||
router->master_uuid = router->set_master_uuid;
|
||||
}
|
||||
|
||||
// Response to the SERVER_UUID, should be stored
|
||||
if (router->saved_master.uuid)
|
||||
|
Reference in New Issue
Block a user