]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: mworker/cli: rename the status function to loadstatus
authorWilliam Lallemand <wlallemand@haproxy.org>
Fri, 21 Oct 2022 12:00:05 +0000 (14:00 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 21 Oct 2022 12:03:06 +0000 (14:03 +0200)
clarify the name of the IO handler which show the reload status.

src/mworker.c

index 40086da7397bd233b1083f19a5ec031318fef11d..2d5b6b8f94ab74d475978a914bd41d237f6fc745 100644 (file)
@@ -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},
        {{},}
 }};