Fix use of zero-weight servers
The servers with a zero weight would be always used over ones that have a weight. This means that the behavior was inverted and caused the mxs2054_hybrid_cluster test to fail in 2.3. Also fixed a typo in the deprecation message.
This commit is contained in:
@ -1703,7 +1703,7 @@ static void service_calculate_weights(SERVICE* service)
|
||||
if (*weightby && service->dbref)
|
||||
{
|
||||
// DEPRECATED in 2.3, remove in 2.4.
|
||||
MXS_WARNING("Setting of server weigths (%s) has been deprecated"
|
||||
MXS_WARNING("Setting of server weights (%s) has been deprecated"
|
||||
" and will be removed in a later version of MaxScale.",
|
||||
weightby);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user