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:
@ -2383,7 +2383,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")))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user