From: William Lallemand Date: Fri, 21 Oct 2022 12:00:05 +0000 (+0200) Subject: CLEANUP: mworker/cli: rename the status function to loadstatus X-Git-Tag: v2.7-dev9~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f67dd96ae57edd37cc09334b9f36b7ed4508355;p=thirdparty%2Fhaproxy.git CLEANUP: mworker/cli: rename the status function to loadstatus clarify the name of the IO handler which show the reload status. --- diff --git a/src/mworker.c b/src/mworker.c index 40086da739..2d5b6b8f94 100644 --- a/src/mworker.c +++ b/src/mworker.c @@ -660,7 +660,7 @@ static int cli_parse_reload(char **args, char *payload, struct appctx *appctx, v /* Displays if the current reload failed or succeed. * If the startup-logs is available, dump it. */ -static int cli_io_handler_show_status(struct appctx *appctx) +static int cli_io_handler_show_loadstatus(struct appctx *appctx) { char *env; struct stconn *sc = appctx_sc(appctx); @@ -753,7 +753,7 @@ static struct cli_kw_list cli_kws = {{ },{ { { "@master", NULL }, "@master : send a command to the master process", cli_parse_default, NULL, NULL, NULL, ACCESS_MASTER_ONLY}, { { "show", "proc", NULL }, "show proc : show processes status", cli_parse_default, cli_io_handler_show_proc, NULL, NULL, ACCESS_MASTER_ONLY}, { { "reload", NULL }, "reload : reload haproxy", cli_parse_reload, NULL, NULL, NULL, ACCESS_MASTER_ONLY}, - { { "_loadstatus", NULL }, NULL, cli_parse_default, cli_io_handler_show_status, NULL, NULL, ACCESS_MASTER_ONLY}, + { { "_loadstatus", NULL }, NULL, cli_parse_default, cli_io_handler_show_loadstatus, NULL, NULL, ACCESS_MASTER_ONLY}, {{},} }};