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:
Markus Mäkelä
2018-11-12 08:53:27 +02:00
parent f2688784cf
commit ae0e9b359d
2 changed files with 9 additions and 6 deletions

View File

@ -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);