]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mworker: find the server ptr using a CLI prefix
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 26 Oct 2018 12:47:38 +0000 (14:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 28 Oct 2018 12:51:39 +0000 (13:51 +0100)
commit291810d8f815c5bd8daee4dc28da4cbd466ff2ae
treeb298b9b65d23b3fc43a7a2f00d31052479ce69de
parent14721be11f2cee016dcac4c259813d875e828006
MEDIUM: mworker: find the server ptr using a CLI prefix

Add a struct server pointer in the mworker_proc struct so we can easily
use it as a target for the mworker proxy.

pcli_prefix_to_pid() is used to find the right PID of the worker
when using a prefix in the CLI. (@master, @#<relative pid> , @<pid>)

pcli_pid_to_server() is used to find the right target server for the
CLI proxy.
include/types/global.h
src/cli.c