MXS-2011 Change return value of blr_check_connect_retry
0 cannot be used to indicate failure as 0 will be the waiting period if we switch to an alternative server. Also fix some minor issues; failure to initialize all members and inverted success-check.
This commit is contained in:
@ -3331,7 +3331,7 @@ int blr_file_read_master_config(ROUTER_INSTANCE *router)
|
||||
|
||||
int rc = ini_parse(filename, blr_handler_config, router);
|
||||
|
||||
if (rc == 1)
|
||||
if (rc == 0)
|
||||
{
|
||||
mxb_assert(router->configs.size() > 0);
|
||||
blr_master_set_config(router, router->configs[0]);
|
||||
|
Reference in New Issue
Block a user