Fixed wrong comparison being made when setting readwritesplit parameters
The comparison was done with strcmp but it was expected to return true on success when in reality it returns 0 on success.
This commit is contained in:
parent
28bd7c2202
commit
8e010d2367
@ -2311,7 +2311,7 @@ int create_new_service(CONFIG_CONTEXT *obj)
|
||||
}
|
||||
|
||||
/** Parameters for rwsplit router only */
|
||||
if (strcmp(router, "readwritesplit"))
|
||||
if (strcmp(router, "readwritesplit") == 0)
|
||||
{
|
||||
if ((param = config_get_param(obj->parameters, "max_slave_connections")))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user