MXS-1777 Changing server weights to match 2.2 behavior.

Match 2.2, changed the weights back to non-inverse because 0-weight
is a special case. Renamed to server_weight for greppability.
This commit is contained in:
Niclas Antti
2018-09-24 12:05:47 +03:00
parent d0c5b2ff61
commit 7d231e5328
5 changed files with 30 additions and 29 deletions

View File

@ -372,7 +372,7 @@ void RWSplit::diagnostics(DCB* dcb)
dcb_printf(dcb,
"\t\t%-20s %3.1f%% %-6d %-6d %d\n",
ref->server->name,
(1.0 - ref->inv_weight) * 100,
ref->server_weight * 100,
ref->server->stats.n_current,
ref->connections,
ref->server->stats.n_current_ops);