Use module parameters in binlogrouter

The binlogrouter accepts all router options also as parameters.
This commit is contained in:
Markus Mäkelä
2017-01-09 21:51:53 +02:00
parent b352458870
commit c06a95ff92
5 changed files with 130 additions and 90 deletions

View File

@ -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)