Name variables the same way as the parameters

The variables now use the actual option and parameter names. This should
help make the code more readable and easier to understand in relation to
the used options.
This commit is contained in:
Markus Mäkelä
2017-01-05 11:03:51 +02:00
parent 410ba7726e
commit 1c8a4b13b9
4 changed files with 65 additions and 65 deletions

View File

@ -166,7 +166,7 @@ bool select_connect_backend_servers(backend_ref_t **p_master_ref,
SERVER_REF *master_backend = get_root_master(backend_ref, router_nservers);
SERVER *master_host = master_backend ? master_backend->server : NULL;
if (router->rwsplit_config.rw_master_failure_mode == RW_FAIL_INSTANTLY &&
if (router->rwsplit_config.master_failure_mode == RW_FAIL_INSTANTLY &&
(master_host == NULL || SERVER_IS_DOWN(master_host)))
{
MXS_ERROR("Couldn't find suitable Master from %d candidates.", router_nservers);