]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] stats: add support for numeric IDs in set weight/get weight
authorWilly Tarreau <w@1wt.eu>
Sat, 10 Oct 2009 20:33:08 +0000 (22:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 10 Oct 2009 20:33:08 +0000 (22:33 +0200)
commitcfeaa476c640397f7c93034959142480bb292127
tree9b17de37aa1ee0ad90b064f3be6bdf1ec5f6c9ed
parentebe0af4b77bca2042565a3f15fc1f597f5862874
[MINOR] stats: add support for numeric IDs in set weight/get weight

Krzysztof reported that using names only for get weight/set weight
was not enough because it's still possible to have multiple servers
with the same name (and my test config is one of those). He suggested
to be able to designate them by their unique numeric IDs by prefixing
the ID with a dash.

That way we can have :

     set weight #120/#2

as well as

     get weight static/srv1 10
doc/configuration.txt
src/proxy.c