]> git.kaiwu.me - haproxy.git/commit
MINOR: server: make srv_set_admin_state() capable of telling why this happens
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Nov 2016 14:53:43 +0000 (15:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 9 Nov 2016 14:30:47 +0000 (15:30 +0100)
commit8b42848a44391275304c17a6957678d61a48f9d4
tree31a748f7aade641bc97e87c3cf8daa82a2bb4ed1
parentb96dd284775224de5670b9b6422977f85d3ff06a
MINOR: server: make srv_set_admin_state() capable of telling why this happens

It will be important to help debugging some DNS resolution issues to
know why a server was marked down, so let's make  the function support
a 3rd argument with an indication of the reason. Passing NULL will keep
the message as-is.
include/proto/server.h
src/dumpstats.c
src/server.c