From 2f67dd96ae57edd37cc09334b9f36b7ed4508355 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Fri, 21 Oct 2022 14:00:05 +0200 Subject: [PATCH] CLEANUP: mworker/cli: rename the status function to loadstatus clarify the name of the IO handler which show the reload status. --- src/mworker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mworker.c b/src/mworker.c index 40086da73..2d5b6b8f9 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}, {{},} }};