]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: map/acl/dumpstats: remove the "Done." message
authorThierry FOURNIER <tfournier@exceliance.fr>
Thu, 18 Dec 2014 14:28:01 +0000 (15:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Dec 2014 22:29:46 +0000 (23:29 +0100)
By convention, the HAProxy CLI doesn't return message if the opration
is sucessfully done. The MAP and ACL returns the "Done." message, an
its noise the output during big MAP or ACL injection.

src/dumpstats.c

index b8968f1680f45c958127e3e4502e3938998a715a..a5c73fa70e5eb825b40f538bb11b373a939cc0d3 100644 (file)
@@ -1295,8 +1295,7 @@ static int stats_sock_parse_request(struct stream_interface *si, char *line)
                        pat_ref_prune(appctx->ctx.map.ref);
 
                        /* return response */
-                       appctx->ctx.cli.msg = "Done.\n";
-                       appctx->st0 = STAT_CLI_PRINT;
+                       appctx->st0 = STAT_CLI_PROMPT;
                        return 1;
                }
                else {
@@ -1788,8 +1787,7 @@ static int stats_sock_parse_request(struct stream_interface *si, char *line)
                        }
 
                        /* The set is done, send message. */
-                       appctx->ctx.cli.msg = "Done.\n";
-                       appctx->st0 = STAT_CLI_PRINT;
+                       appctx->st0 = STAT_CLI_PROMPT;
                        return 1;
                }
 #ifdef USE_OPENSSL
@@ -2138,8 +2136,7 @@ static int stats_sock_parse_request(struct stream_interface *si, char *line)
                        }
 
                        /* The deletion is done, send message. */
-                       appctx->ctx.cli.msg = "Done.\n";
-                       appctx->st0 = STAT_CLI_PRINT;
+                       appctx->st0 = STAT_CLI_PROMPT;
                        return 1;
                }
                else { /* unknown "del" parameter */
@@ -2215,8 +2212,7 @@ static int stats_sock_parse_request(struct stream_interface *si, char *line)
                        }
 
                        /* The add is done, send message. */
-                       appctx->ctx.cli.msg = "Done.\n";
-                       appctx->st0 = STAT_CLI_PRINT;
+                       appctx->st0 = STAT_CLI_PROMPT;
                        return 1;
                }
                else { /* unknown "del" parameter */