]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: cli: remove information about acl or map owner.
authorThierry FOURNIER <tfournier@exceliance.fr>
Thu, 20 Mar 2014 10:45:47 +0000 (11:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Mar 2014 12:14:00 +0000 (13:14 +0100)
The string <display> contain all the owners of the displayed pattern.
The message " - also used by an ACL/map" is useless.

src/dumpstats.c

index 6a4de8c915421a2807e3eead191f63718093132d..d20682ee8ed205fb00312572c9d07ed2a0633e38 100644 (file)
@@ -4885,20 +4885,10 @@ static int stats_pats_list(struct stream_interface *si)
                        /* Build messages. If the reference is used by another category than
                         * the listed categorie, display the information in the massage.
                         */
-                       chunk_appendf(&trash, "%d (%s) %s", appctx->ctx.map.ref->unique_id,
+                       chunk_appendf(&trash, "%d (%s) %s\n", appctx->ctx.map.ref->unique_id,
                                      appctx->ctx.map.ref->reference ? appctx->ctx.map.ref->reference : "",
                                      appctx->ctx.map.ref->display);
 
-                       if (appctx->ctx.map.display_flags & PAT_REF_MAP) {
-                               if (appctx->ctx.map.ref->flags & PAT_REF_ACL)
-                                       chunk_appendf(&trash, " - also used by an ACL");
-                       }
-                       else {
-                               if (appctx->ctx.map.ref->flags & PAT_REF_MAP)
-                                       chunk_appendf(&trash, " - also used by a map");
-                       }
-                       chunk_appendf(&trash, "\n");
-
                        if (bi_putchk(si->ib, &trash) == -1) {
                                /* let's try again later from this session. We add ourselves into
                                 * this session's users so that it can remove us upon termination.